Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
人间散章
rt-thread
提交
63c74199
R
rt-thread
项目概览
人间散章
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
63c74199
编写于
9月 28, 2021
作者:
B
Bernard Xiong
提交者:
GitHub
9月 28, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5031 from liukangcc/armclang
[update] support armclang
上级
d43a68e9
0e46c8a3
变更
102
展开全部
隐藏空白更改
内联
并排
Showing
102 changed file
with
2581 addition
and
30 deletion
+2581
-30
bsp/at91sam9260/platform/SConscript
bsp/at91sam9260/platform/SConscript
+1
-1
bsp/at91sam9g45/platform/SConscript
bsp/at91sam9g45/platform/SConscript
+1
-1
bsp/bluetrum/libcpu/cpu/SConscript
bsp/bluetrum/libcpu/cpu/SConscript
+1
-1
bsp/imx6sx/cortex-a9/cpu/SConscript
bsp/imx6sx/cortex-a9/cpu/SConscript
+1
-1
bsp/qemu-vexpress-gemini/cpu/SConscript
bsp/qemu-vexpress-gemini/cpu/SConscript
+1
-1
bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32f3xx/rtconfig.py
bsp/stm32/libraries/templates/stm32f3xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32mp1xx/rtconfig.py
bsp/stm32/libraries/templates/stm32mp1xx/rtconfig.py
+34
-0
bsp/stm32/libraries/templates/stm32wbxx/rtconfig.py
bsp/stm32/libraries/templates/stm32wbxx/rtconfig.py
+34
-0
bsp/stm32/stm32f072-st-nucleo/rtconfig.py
bsp/stm32/stm32f072-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f091-st-nucleo/rtconfig.py
bsp/stm32/stm32f091-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f103-atk-nano/rtconfig.py
bsp/stm32/stm32f103-atk-nano/rtconfig.py
+34
-0
bsp/stm32/stm32f103-atk-warshipv3/rtconfig.py
bsp/stm32/stm32f103-atk-warshipv3/rtconfig.py
+34
-0
bsp/stm32/stm32f103-blue-pill/rtconfig.py
bsp/stm32/stm32f103-blue-pill/rtconfig.py
+34
-0
bsp/stm32/stm32f103-dofly-M3S/rtconfig.py
bsp/stm32/stm32f103-dofly-M3S/rtconfig.py
+34
-0
bsp/stm32/stm32f103-dofly-lyc8/rtconfig.py
bsp/stm32/stm32f103-dofly-lyc8/rtconfig.py
+34
-0
bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
+34
-0
bsp/stm32/stm32f103-gizwits-gokitv21/rtconfig.py
bsp/stm32/stm32f103-gizwits-gokitv21/rtconfig.py
+34
-0
bsp/stm32/stm32f103-hw100k-ibox/rtconfig.py
bsp/stm32/stm32f103-hw100k-ibox/rtconfig.py
+34
-0
bsp/stm32/stm32f103-onenet-nbiot/rtconfig.py
bsp/stm32/stm32f103-onenet-nbiot/rtconfig.py
+34
-0
bsp/stm32/stm32f103-yf-ufun/rtconfig.py
bsp/stm32/stm32f103-yf-ufun/rtconfig.py
+34
-0
bsp/stm32/stm32f107-uc-eval/rtconfig.py
bsp/stm32/stm32f107-uc-eval/rtconfig.py
+34
-0
bsp/stm32/stm32f207-st-nucleo/rtconfig.py
bsp/stm32/stm32f207-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f302-st-nucleo/rtconfig.py
bsp/stm32/stm32f302-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f401-st-nucleo/rtconfig.py
bsp/stm32/stm32f401-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.py
bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.py
+34
-0
bsp/stm32/stm32f407-armfly-v5/rtconfig.py
bsp/stm32/stm32f407-armfly-v5/rtconfig.py
+34
-0
bsp/stm32/stm32f407-atk-explorer/rtconfig.py
bsp/stm32/stm32f407-atk-explorer/rtconfig.py
+34
-0
bsp/stm32/stm32f407-robomaster-c/rtconfig.py
bsp/stm32/stm32f407-robomaster-c/rtconfig.py
+34
-0
bsp/stm32/stm32f407-st-discovery/rtconfig.py
bsp/stm32/stm32f407-st-discovery/rtconfig.py
+34
-0
bsp/stm32/stm32f410-st-nucleo/rtconfig.py
bsp/stm32/stm32f410-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f411-atk-nano/rtconfig.py
bsp/stm32/stm32f411-atk-nano/rtconfig.py
+34
-0
bsp/stm32/stm32f411-st-nucleo/rtconfig.py
bsp/stm32/stm32f411-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f411-weact-MiniF4/rtconfig.py
bsp/stm32/stm32f411-weact-MiniF4/rtconfig.py
+34
-0
bsp/stm32/stm32f413-st-nucleo/rtconfig.py
bsp/stm32/stm32f413-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f427-robomaster-a/rtconfig.py
bsp/stm32/stm32f427-robomaster-a/rtconfig.py
+34
-0
bsp/stm32/stm32f429-armfly-v6/rtconfig.py
bsp/stm32/stm32f429-armfly-v6/rtconfig.py
+34
-0
bsp/stm32/stm32f429-atk-apollo/rtconfig.py
bsp/stm32/stm32f429-atk-apollo/rtconfig.py
+34
-0
bsp/stm32/stm32f429-fire-challenger/rtconfig.py
bsp/stm32/stm32f429-fire-challenger/rtconfig.py
+34
-0
bsp/stm32/stm32f429-st-disco/rtconfig.py
bsp/stm32/stm32f429-st-disco/rtconfig.py
+34
-0
bsp/stm32/stm32f446-st-nucleo/rtconfig.py
bsp/stm32/stm32f446-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f469-st-disco/rtconfig.py
bsp/stm32/stm32f469-st-disco/rtconfig.py
+34
-0
bsp/stm32/stm32f746-st-disco/rtconfig.py
bsp/stm32/stm32f746-st-disco/rtconfig.py
+34
-0
bsp/stm32/stm32f746-st-nucleo/rtconfig.py
bsp/stm32/stm32f746-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f767-atk-apollo/rtconfig.py
bsp/stm32/stm32f767-atk-apollo/rtconfig.py
+34
-0
bsp/stm32/stm32f767-fire-challenger-v1/rtconfig.py
bsp/stm32/stm32f767-fire-challenger-v1/rtconfig.py
+34
-0
bsp/stm32/stm32f767-st-nucleo/rtconfig.py
bsp/stm32/stm32f767-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32f769-st-disco/rtconfig.py
bsp/stm32/stm32f769-st-disco/rtconfig.py
+34
-0
bsp/stm32/stm32g070-st-nucleo/rtconfig.py
bsp/stm32/stm32g070-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32g071-st-nucleo/rtconfig.py
bsp/stm32/stm32g071-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32g431-st-nucleo/rtconfig.py
bsp/stm32/stm32g431-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32h743-armfly-V7/rtconfig.py
bsp/stm32/stm32h743-armfly-V7/rtconfig.py
+34
-0
bsp/stm32/stm32h743-atk-apollo/rtconfig.py
bsp/stm32/stm32h743-atk-apollo/rtconfig.py
+34
-0
bsp/stm32/stm32h743-st-nucleo/rtconfig.py
bsp/stm32/stm32h743-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32h747-st-discovery/rtconfig.py
bsp/stm32/stm32h747-st-discovery/rtconfig.py
+34
-0
bsp/stm32/stm32h750-armfly-h7-tool/rtconfig.py
bsp/stm32/stm32h750-armfly-h7-tool/rtconfig.py
+34
-0
bsp/stm32/stm32l010-st-nucleo/rtconfig.py
bsp/stm32/stm32l010-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l412-st-nucleo/rtconfig.py
bsp/stm32/stm32l412-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l431-BearPi/rtconfig.py
bsp/stm32/stm32l431-BearPi/rtconfig.py
+34
-0
bsp/stm32/stm32l432-st-nucleo/rtconfig.py
bsp/stm32/stm32l432-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l433-st-nucleo/rtconfig.py
bsp/stm32/stm32l433-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l452-st-nucleo/rtconfig.py
bsp/stm32/stm32l452-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
+4
-1
bsp/stm32/stm32l475-st-discovery/rtconfig.py
bsp/stm32/stm32l475-st-discovery/rtconfig.py
+34
-0
bsp/stm32/stm32l476-st-nucleo/rtconfig.py
bsp/stm32/stm32l476-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l496-ali-developer/rtconfig.py
bsp/stm32/stm32l496-ali-developer/rtconfig.py
+34
-0
bsp/stm32/stm32l496-st-nucleo/rtconfig.py
bsp/stm32/stm32l496-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l4r5-st-nucleo/rtconfig.py
bsp/stm32/stm32l4r5-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32l4r9-st-eval/rtconfig.py
bsp/stm32/stm32l4r9-st-eval/rtconfig.py
+34
-0
bsp/stm32/stm32l4r9-st-sensortile-box/rtconfig.py
bsp/stm32/stm32l4r9-st-sensortile-box/rtconfig.py
+34
-0
bsp/stm32/stm32mp157a-st-discovery/rtconfig.py
bsp/stm32/stm32mp157a-st-discovery/rtconfig.py
+34
-0
bsp/stm32/stm32mp157a-st-ev1/rtconfig.py
bsp/stm32/stm32mp157a-st-ev1/rtconfig.py
+35
-1
bsp/stm32/stm32wb55-st-nucleo/rtconfig.py
bsp/stm32/stm32wb55-st-nucleo/rtconfig.py
+34
-0
bsp/stm32/stm32wl55-st-nucleo/rtconfig.py
bsp/stm32/stm32wl55-st-nucleo/rtconfig.py
+34
-0
libcpu/arm/AT91SAM7S/SConscript
libcpu/arm/AT91SAM7S/SConscript
+1
-1
libcpu/arm/AT91SAM7X/SConscript
libcpu/arm/AT91SAM7X/SConscript
+1
-1
libcpu/arm/am335x/SConscript
libcpu/arm/am335x/SConscript
+1
-1
libcpu/arm/arm926/SConscript
libcpu/arm/arm926/SConscript
+1
-1
libcpu/arm/armv6/SConscript
libcpu/arm/armv6/SConscript
+1
-1
libcpu/arm/common/SConscript
libcpu/arm/common/SConscript
+1
-1
libcpu/arm/cortex-a/SConscript
libcpu/arm/cortex-a/SConscript
+1
-1
libcpu/arm/cortex-m0/SConscript
libcpu/arm/cortex-m0/SConscript
+1
-1
libcpu/arm/cortex-m23/SConscript
libcpu/arm/cortex-m23/SConscript
+1
-3
libcpu/arm/cortex-m3/SConscript
libcpu/arm/cortex-m3/SConscript
+1
-1
libcpu/arm/cortex-m33/SConscript
libcpu/arm/cortex-m33/SConscript
+1
-1
libcpu/arm/cortex-m4/SConscript
libcpu/arm/cortex-m4/SConscript
+1
-1
libcpu/arm/cortex-r4/SConscript
libcpu/arm/cortex-r4/SConscript
+1
-1
libcpu/arm/dm36x/SConscript
libcpu/arm/dm36x/SConscript
+1
-1
libcpu/arm/lpc214x/SConscript
libcpu/arm/lpc214x/SConscript
+1
-1
libcpu/arm/lpc24xx/SConscript
libcpu/arm/lpc24xx/SConscript
+1
-1
libcpu/arm/realview-a8-vmm/SConscript
libcpu/arm/realview-a8-vmm/SConscript
+1
-1
libcpu/arm/s3c24x0/SConscript
libcpu/arm/s3c24x0/SConscript
+1
-1
libcpu/arm/s3c44b0/SConscript
libcpu/arm/s3c44b0/SConscript
+1
-1
libcpu/arm/sep4020/SConscript
libcpu/arm/sep4020/SConscript
+1
-1
libcpu/arm/zynqmp-r5/SConscript
libcpu/arm/zynqmp-r5/SConscript
+1
-1
未找到文件。
bsp/at91sam9260/platform/SConscript
浏览文件 @
63c74199
...
...
@@ -6,7 +6,7 @@ cwd = GetCurrentDir()
CPPPATH
=
[
cwd
]
# The set of source files associated with this SConscript file.
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
=
Glob
(
'*.c'
)
+
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
bsp/at91sam9g45/platform/SConscript
浏览文件 @
63c74199
...
...
@@ -6,7 +6,7 @@ cwd = GetCurrentDir()
CPPPATH
=
[
cwd
]
# The set of source files associated with this SConscript file.
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
=
Glob
(
'*.c'
)
+
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
bsp/bluetrum/libcpu/cpu/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
bsp/imx6sx/cortex-a9/cpu/SConscript
浏览文件 @
63c74199
...
...
@@ -9,7 +9,7 @@ if rtconfig.PLATFORM == 'iar':
src
+=
Glob
(
'*_iar.S'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
src
+=
Glob
(
'*_gcc.S'
)
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
group
=
DefineGroup
(
'CPU'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/qemu-vexpress-gemini/cpu/SConscript
浏览文件 @
63c74199
...
...
@@ -9,7 +9,7 @@ if rtconfig.PLATFORM == 'iar':
src
+=
Glob
(
'*_iar.S'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
src
+=
Glob
(
'*_gcc.S'
)
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
group
=
DefineGroup
(
'CPU'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/stm32/libraries/templates/stm32f0xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M1.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32f2xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32f3xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32f7xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32l1xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32mp1xx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/libraries/templates/stm32wbxx/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f072-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f091-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-atk-nano/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M1.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-atk-warshipv3/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-blue-pill/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-dofly-M3S/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-dofly-lyc8/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-gizwits-gokitv21/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-hw100k-ibox/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-onenet-nbiot/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f103-yf-ufun/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f107-uc-eval/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f207-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M3 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m3 '
CFLAGS
+=
' -mcpu=cortex-m3 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f302-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f401-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f405-smdz-breadfruit/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f407-armfly-v5/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f407-atk-explorer/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f407-robomaster-c/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f407-st-discovery/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f410-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f411-atk-nano/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f411-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f411-weact-MiniF4/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f413-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f427-robomaster-a/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f429-armfly-v6/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f429-atk-apollo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f429-fire-challenger/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f429-st-disco/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f446-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f469-st-disco/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f746-st-disco/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -97,6 +97,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f746-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -99,6 +99,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f767-atk-apollo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f767-fire-challenger-v1/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f767-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -99,6 +99,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32f769-st-disco/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -92,6 +92,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m7 '
CFLAGS
+=
' -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32g070-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi --mcpu=cortex-m0plus '
CFLAGS
+=
' -mcpu=cortex-m0plus '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32g071-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi --mcpu=cortex-m0plus '
CFLAGS
+=
' -mcpu=cortex-m0plus '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32g431-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32h743-armfly-V7/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
CFLAGS
+=
' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32h743-atk-apollo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
CFLAGS
+=
' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32h743-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
CFLAGS
+=
' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32h747-st-discovery/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
CFLAGS
+=
' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32h750-armfly-h7-tool/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M7.fp.sp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-M7 '
CFLAGS
+=
' -mcpu=cortex-M7 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l010-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l053-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M0 '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m0 '
CFLAGS
+=
' -mcpu=cortex-m0 '
CFLAGS
+=
' -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l412-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l431-BearPi/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l432-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l433-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l452-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
浏览文件 @
63c74199
...
...
@@ -13,7 +13,10 @@ LOCAL_CCFLAGS = ''
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
LOCAL_CCFLAGS
+=
' -std=c99'
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
LOCAL_CCFLAGS
+=
' --c99'
if
rtconfig
.
PLATFORM
==
'armcc'
:
LOCAL_CCFLAGS
+=
' --c99'
elif
rtconfig
.
PLATFORM
==
'armclang'
:
LOCAL_CCFLAGS
+=
' -std=c99'
group
=
DefineGroup
(
'FAL'
,
src
,
depend
=
[
'PKG_USING_FAL'
],
CPPPATH
=
CPPPATH
,
LOCAL_CCFLAGS
=
LOCAL_CCFLAGS
)
...
...
bsp/stm32/stm32l475-st-discovery/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l476-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l496-ali-developer/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l496-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -94,6 +94,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l4r5-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l4r9-st-eval/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32l4r9-st-sensortile-box/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32mp157a-st-discovery/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32mp157a-st-ev1/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -23,7 +23,7 @@ elif CROSS_TOOL == 'keil':
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar'
EXEC_PATH
=
r
'
D:\software\Embedded Workbench 8.3
'
EXEC_PATH
=
r
'
C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32wb55-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
bsp/stm32/stm32wl55-st-nucleo/rtconfig.py
浏览文件 @
63c74199
...
...
@@ -93,6 +93,40 @@ elif PLATFORM == 'armcc':
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'armclang'
:
# toolchains
CC
=
'armclang'
CXX
=
'armclang'
AS
=
'armasm'
AR
=
'armar'
LINK
=
'armlink'
TARGET_EXT
=
'axf'
DEVICE
=
' --cpu Cortex-M4.fp '
CFLAGS
=
' --target=arm-arm-none-eabi -mcpu=cortex-m4 '
CFLAGS
+=
' -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 '
CFLAGS
+=
' -mfloat-abi=hard -c -fno-rtti -funsigned-char -fshort-enums -fshort-wchar '
CFLAGS
+=
' -gdwarf-3 -ffunction-sections '
AFLAGS
=
DEVICE
+
' --apcs=interwork '
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers '
LFLAGS
+=
' --list rt-thread.map '
LFLAGS
+=
r
' --strict --scatter "board\linker_scripts\link.sct" '
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/ARMCLANG/include'
LFLAGS
+=
' --libpath='
+
EXEC_PATH
+
'/ARM/ARMCLANG/lib'
EXEC_PATH
+=
'/ARM/ARMCLANG/bin/'
if
BUILD
==
'debug'
:
CFLAGS
+=
' -g -O1'
# armclang recommend
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' -std=c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
elif
PLATFORM
==
'iar'
:
# toolchains
CC
=
'iccarm'
...
...
libcpu/arm/AT91SAM7S/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/AT91SAM7X/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/am335x/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/arm926/SConscript
浏览文件 @
63c74199
...
...
@@ -9,7 +9,7 @@ src = Glob('*.c') + Glob('*.cpp')
CPPPATH
=
[
cwd
]
ASFLAGS
=
''
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
ASFLAGS
=
' --cpreproc'
...
...
libcpu/arm/armv6/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/common/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-a/SConscript
浏览文件 @
63c74199
...
...
@@ -23,7 +23,7 @@ if GetDepend('RT_USING_GIC_V3'):
src
+=
[
'gicv3.c'
]
src
+=
[
'trap.c'
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-m0/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-m23/SConscript
浏览文件 @
63c74199
...
...
@@ -8,9 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
src
+=
Glob
(
'*_rvds.S'
)
elif
rtconfig
.
PLATFORM
==
'armclang'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-m3/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-m33/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/cortex-m4/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'armclang'
:
...
...
libcpu/arm/cortex-r4/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/dm36x/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/lpc214x/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/lpc24xx/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/realview-a8-vmm/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/s3c24x0/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/s3c44b0/SConscript
浏览文件 @
63c74199
...
...
@@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
==
'armcc'
or
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
Glob
(
'*_rvds.S'
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
...
...
libcpu/arm/sep4020/SConscript
浏览文件 @
63c74199
此差异已折叠。
点击以展开。
libcpu/arm/zynqmp-r5/SConscript
浏览文件 @
63c74199
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录