-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更改了xmake工程的配置 #5
Merged
+70
−31
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1424ed2
add ch32 toolchain
linshire bfa77d3
add ch32 risc-v toolchains
linshire 54441b8
变更了目标的生成位置,编译器的配置项以及项目的配置项
linshire e879e5b
formating
linshire 99f7cb0
fix a bug
linshire af8086a
删掉了一个多余的分号
linshire d1431c9
Update stdarg.h
linshire fcc2f28
Update stdarg.h
linshire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef __TYPEDEF_H__ | ||
#define __TYPEDEF_H__ | ||
|
||
#define NULL 0 | ||
|
||
typedef unsigned char uint8_t; | ||
typedef unsigned short int uint16_t; | ||
typedef unsigned int uint32_t; | ||
typedef unsigned long long uint64_t; | ||
|
||
typedef signed char int8_t; | ||
typedef signed short int int16_t; | ||
typedef signed int int32_t; | ||
typedef signed long long int64_t; | ||
|
||
typedef volatile uint8_t vuint8_t; | ||
typedef volatile uint16_t vuint16_t; | ||
typedef volatile uint32_t vuint32_t; | ||
typedef volatile uint64_t vuint64_t; | ||
|
||
typedef volatile int8_t vint8_t; | ||
typedef volatile int16_t vint16_t; | ||
typedef volatile int32_t vint32_t; | ||
typedef volatile int64_t vint64_t; | ||
|
||
typedef int64_t intmax_t; | ||
typedef uint64_t uintmax_t; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#ifndef __STDARG_H__ | ||
#define __STDARG_H__ | ||
|
||
typedef char * va_list; | ||
#define va_list __builtin_va_list | ||
#define va_start(v,l) __builtin_va_start(v,l) | ||
#define va_end(v) __builtin_va_end(v) | ||
#define va_end(v) __builtin_va_end(v) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 看看网页版本,乱的。另外,你这边是 |
||
#define va_arg(v,l) __builtin_va_arg(v,l) | ||
#define va_copy(d,s) __builtin_va_copy(d,s) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PATH = "D:\\RT-ThreadStudio\\repo\\Extract\\ToolChain_Support_Packages\\WCH\\RISC-V-GCC-WCH\\8.2.0" | ||
BIN_DIR = PATH .. "\\bin" | ||
PREFIX = "riscv-none-embed-" | ||
|
||
TOOLCHAIN_NAME = "riscv-none-embed" | ||
|
||
toolchain(TOOLCHAIN_NAME) | ||
|
||
set_kind("standalone") | ||
set_sdkdir(PATH) | ||
set_bindir(BIN_DIR) | ||
|
||
toolchain_end() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
PATH = "E:\\toolchain\\riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-w64-mingw32" | ||
BINDIR =PATH.."\\bin" | ||
PREFIX = "riscv64-unknown-elf-" | ||
|
||
PATH = "E:\toolchain\riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-w64-mingw32" | ||
TOOLCHAIN_NAME = "riscv64-unknown-elf" | ||
|
||
toolchain("riscv64-unknown-elf") | ||
|
||
set_kind("standalone") | ||
set_bindir("E:/toolchain/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-w64-mingw32/bin") | ||
set_toolset("cc", "$PATH\bin\riscv64-unknown-elf-gcc.exe") | ||
set_toolset("cxx", "$PATH\bin\riscv64-unknown-elf-g++.exe") | ||
set_toolset("ld", "$PATH\bin\riscv64-unknown-elf-ld.exe") | ||
--set_toolset("sh", "$PATH\bin\riscv64-unknown-elf-gcc-sh.exe") | ||
set_toolset("ar", "$PATH\bin\riscv64-unknown-elf-gcc-ar.exe") | ||
set_toolset("ex", "$PATH\bin\riscv64-unknown-elf-gcc-ar.exe") | ||
set_toolset("strip", "$PATH\bin\riscv64-unknown-elf-strip.exe") | ||
set_toolset("mm", "$PATH\bin\riscv64-unknown-elf-gcc.exe") | ||
set_toolset("mxx", "$PATH\bin\riscv64-unknown-elf-gcc.exe", "$PATH\bin\riscv64-unknown-elf-g++.exe") | ||
set_toolset("as", "$PATH\bin\riscv64-unknown-elf-gcc.exe") | ||
set_sdkdir(PATH) | ||
set_bindir(BINDIR) | ||
|
||
toolchain_end() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why for arm? These should be the common definitions.