Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
dd94198b
R
rt-thread
项目概览
wwsmg1
/
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,发现更多精彩内容 >>
提交
dd94198b
编写于
8月 15, 2022
作者:
mysterywolf
提交者:
guo
8月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
上级
c038e55d
变更
100
隐藏空白更改
内联
并排
Showing
100 changed file
with
202 addition
and
287 deletion
+202
-287
bsp/apm32/apm32f103xe-minibroard/SConstruct
bsp/apm32/apm32f103xe-minibroard/SConstruct
+1
-1
bsp/apm32/apm32f407ig-minibroard/SConstruct
bsp/apm32/apm32f407ig-minibroard/SConstruct
+1
-1
bsp/apm32/apm32f407ig-minibroard/board/SConscript
bsp/apm32/apm32f407ig-minibroard/board/SConscript
+3
-3
bsp/at32/at32f413-start/board/SConscript
bsp/at32/at32f413-start/board/SConscript
+2
-2
bsp/at32/at32f415-start/board/SConscript
bsp/at32/at32f415-start/board/SConscript
+2
-2
bsp/at91/at91sam9260/platform/SConscript
bsp/at91/at91sam9260/platform/SConscript
+1
-4
bsp/at91/at91sam9g45/platform/SConscript
bsp/at91/at91sam9g45/platform/SConscript
+1
-4
bsp/cypress/psoc6-cy8cproto-4343w/SConstruct
bsp/cypress/psoc6-cy8cproto-4343w/SConstruct
+1
-1
bsp/cypress/psoc6-cy8cproto-4343w/board/SConscript
bsp/cypress/psoc6-cy8cproto-4343w/board/SConscript
+1
-1
bsp/cypress/psoc6-cy8cproto-4343w/rtconfig.py
bsp/cypress/psoc6-cy8cproto-4343w/rtconfig.py
+2
-2
bsp/gd32/arm/docs/GD32_ARM系列BSP制作教程.md
bsp/gd32/arm/docs/GD32_ARM系列BSP制作教程.md
+4
-4
bsp/gd32/arm/gd32103c-eval/SConstruct
bsp/gd32/arm/gd32103c-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32103c-eval/board/SConscript
bsp/gd32/arm/gd32103c-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32103c-eval/rtconfig.py
bsp/gd32/arm/gd32103c-eval/rtconfig.py
+2
-2
bsp/gd32/arm/gd32105c-eval/SConstruct
bsp/gd32/arm/gd32105c-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32105c-eval/board/SConscript
bsp/gd32/arm/gd32105c-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32105c-eval/rtconfig.py
bsp/gd32/arm/gd32105c-eval/rtconfig.py
+2
-2
bsp/gd32/arm/gd32105r-start/SConstruct
bsp/gd32/arm/gd32105r-start/SConstruct
+1
-1
bsp/gd32/arm/gd32105r-start/board/SConscript
bsp/gd32/arm/gd32105r-start/board/SConscript
+3
-3
bsp/gd32/arm/gd32105r-start/rtconfig.py
bsp/gd32/arm/gd32105r-start/rtconfig.py
+2
-2
bsp/gd32/arm/gd32107c-eval/SConstruct
bsp/gd32/arm/gd32107c-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32107c-eval/board/SConscript
bsp/gd32/arm/gd32107c-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32107c-eval/rtconfig.py
bsp/gd32/arm/gd32107c-eval/rtconfig.py
+2
-2
bsp/gd32/arm/gd32205r-start/SConstruct
bsp/gd32/arm/gd32205r-start/SConstruct
+1
-1
bsp/gd32/arm/gd32205r-start/board/SConscript
bsp/gd32/arm/gd32205r-start/board/SConscript
+3
-3
bsp/gd32/arm/gd32205r-start/rtconfig.py
bsp/gd32/arm/gd32205r-start/rtconfig.py
+2
-2
bsp/gd32/arm/gd32207i-eval/SConstruct
bsp/gd32/arm/gd32207i-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32207i-eval/board/SConscript
bsp/gd32/arm/gd32207i-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32207i-eval/rtconfig.py
bsp/gd32/arm/gd32207i-eval/rtconfig.py
+2
-2
bsp/gd32/arm/gd32303e-eval/SConstruct
bsp/gd32/arm/gd32303e-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32303e-eval/board/SConscript
bsp/gd32/arm/gd32303e-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32303e-eval/rtconfig.py
bsp/gd32/arm/gd32303e-eval/rtconfig.py
+2
-2
bsp/gd32/arm/gd32305r-start/SConstruct
bsp/gd32/arm/gd32305r-start/SConstruct
+1
-1
bsp/gd32/arm/gd32305r-start/board/SConscript
bsp/gd32/arm/gd32305r-start/board/SConscript
+3
-3
bsp/gd32/arm/gd32305r-start/rtconfig.py
bsp/gd32/arm/gd32305r-start/rtconfig.py
+2
-2
bsp/gd32/arm/gd32307e-start/SConstruct
bsp/gd32/arm/gd32307e-start/SConstruct
+1
-1
bsp/gd32/arm/gd32307e-start/board/SConscript
bsp/gd32/arm/gd32307e-start/board/SConscript
+3
-3
bsp/gd32/arm/gd32307e-start/rtconfig.py
bsp/gd32/arm/gd32307e-start/rtconfig.py
+2
-2
bsp/gd32/arm/gd32407v-start/SConstruct
bsp/gd32/arm/gd32407v-start/SConstruct
+1
-1
bsp/gd32/arm/gd32407v-start/board/SConscript
bsp/gd32/arm/gd32407v-start/board/SConscript
+3
-3
bsp/gd32/arm/gd32407v-start/rtconfig.py
bsp/gd32/arm/gd32407v-start/rtconfig.py
+2
-2
bsp/gd32/arm/gd32450z-eval/SConstruct
bsp/gd32/arm/gd32450z-eval/SConstruct
+1
-1
bsp/gd32/arm/gd32450z-eval/board/SConscript
bsp/gd32/arm/gd32450z-eval/board/SConscript
+3
-3
bsp/gd32/arm/gd32450z-eval/rtconfig.py
bsp/gd32/arm/gd32450z-eval/rtconfig.py
+2
-2
bsp/gd32/risc-v/docs/GD32_RISC-V系列BSP制作教程.md
bsp/gd32/risc-v/docs/GD32_RISC-V系列BSP制作教程.md
+1
-1
bsp/gd32/risc-v/gd32vf103r-start/board/SConscript
bsp/gd32/risc-v/gd32vf103r-start/board/SConscript
+1
-1
bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript
bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript
+1
-1
bsp/hc32/ev_hc32f460_lqfp100_v2/SConstruct
bsp/hc32/ev_hc32f460_lqfp100_v2/SConstruct
+1
-1
bsp/hc32/ev_hc32f460_lqfp100_v2/board/SConscript
bsp/hc32/ev_hc32f460_lqfp100_v2/board/SConscript
+3
-3
bsp/hc32/ev_hc32f460_lqfp100_v2/rtconfig.py
bsp/hc32/ev_hc32f460_lqfp100_v2/rtconfig.py
+1
-1
bsp/hc32/ev_hc32f4a0_lqfp176/board/SConscript
bsp/hc32/ev_hc32f4a0_lqfp176/board/SConscript
+2
-2
bsp/imxrt/imxrt1021-nxp-evk/applications/SConscript
bsp/imxrt/imxrt1021-nxp-evk/applications/SConscript
+1
-1
bsp/imxrt/imxrt1021-nxp-evk/board/SConscript
bsp/imxrt/imxrt1021-nxp-evk/board/SConscript
+1
-1
bsp/imxrt/imxrt1021-nxp-evk/xip/SConscript
bsp/imxrt/imxrt1021-nxp-evk/xip/SConscript
+1
-1
bsp/imxrt/imxrt1170-nxp-evk/applications/SConscript
bsp/imxrt/imxrt1170-nxp-evk/applications/SConscript
+1
-1
bsp/imxrt/imxrt1170-nxp-evk/xip/SConscript
bsp/imxrt/imxrt1170-nxp-evk/xip/SConscript
+1
-1
bsp/imxrt/libraries/MIMXRT1020/SConscript
bsp/imxrt/libraries/MIMXRT1020/SConscript
+2
-2
bsp/imxrt/libraries/MIMXRT1170/SConscript
bsp/imxrt/libraries/MIMXRT1170/SConscript
+3
-3
bsp/n32/n32g45xvl-stb/SConstruct
bsp/n32/n32g45xvl-stb/SConstruct
+1
-1
bsp/n32/n32g45xvl-stb/board/SConscript
bsp/n32/n32g45xvl-stb/board/SConscript
+2
-2
bsp/n32/n32g45xvl-stb/rtconfig.py
bsp/n32/n32g45xvl-stb/rtconfig.py
+2
-2
bsp/nrf5x/docs/nRF5x系列BSP制作教程.md
bsp/nrf5x/docs/nRF5x系列BSP制作教程.md
+3
-3
bsp/renesas/libraries/bsp-template/SConscript
bsp/renesas/libraries/bsp-template/SConscript
+2
-5
bsp/renesas/libraries/bsp-template/board/ports/SConscript
bsp/renesas/libraries/bsp-template/board/ports/SConscript
+2
-2
bsp/renesas/libraries/bsp-template/ra/SConscript
bsp/renesas/libraries/bsp-template/ra/SConscript
+2
-11
bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
+2
-5
bsp/renesas/libraries/bsp-template/ra_gen/SConscript
bsp/renesas/libraries/bsp-template/ra_gen/SConscript
+2
-5
bsp/renesas/ra2l1-cpk/QE-Touch/SConscript
bsp/renesas/ra2l1-cpk/QE-Touch/SConscript
+4
-8
bsp/renesas/ra2l1-cpk/SConscript
bsp/renesas/ra2l1-cpk/SConscript
+3
-6
bsp/renesas/ra2l1-cpk/SConstruct
bsp/renesas/ra2l1-cpk/SConstruct
+1
-1
bsp/renesas/ra2l1-cpk/board/ports/SConscript
bsp/renesas/ra2l1-cpk/board/ports/SConscript
+3
-3
bsp/renesas/ra2l1-cpk/ra/SConscript
bsp/renesas/ra2l1-cpk/ra/SConscript
+3
-12
bsp/renesas/ra2l1-cpk/ra_cfg/SConscript
bsp/renesas/ra2l1-cpk/ra_cfg/SConscript
+3
-3
bsp/renesas/ra2l1-cpk/ra_gen/SConscript
bsp/renesas/ra2l1-cpk/ra_gen/SConscript
+3
-6
bsp/renesas/ra2l1-cpk/rtconfig.py
bsp/renesas/ra2l1-cpk/rtconfig.py
+1
-1
bsp/renesas/ra6m4-cpk/SConscript
bsp/renesas/ra6m4-cpk/SConscript
+2
-5
bsp/renesas/ra6m4-cpk/board/ports/SConscript
bsp/renesas/ra6m4-cpk/board/ports/SConscript
+2
-2
bsp/renesas/ra6m4-cpk/ra/SConscript
bsp/renesas/ra6m4-cpk/ra/SConscript
+2
-11
bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
+2
-5
bsp/renesas/ra6m4-cpk/ra_gen/SConscript
bsp/renesas/ra6m4-cpk/ra_gen/SConscript
+2
-5
bsp/renesas/ra6m4-iot/SConscript
bsp/renesas/ra6m4-iot/SConscript
+2
-5
bsp/renesas/ra6m4-iot/board/ports/SConscript
bsp/renesas/ra6m4-iot/board/ports/SConscript
+2
-2
bsp/renesas/ra6m4-iot/ra/SConscript
bsp/renesas/ra6m4-iot/ra/SConscript
+2
-11
bsp/renesas/ra6m4-iot/ra_cfg/SConscript
bsp/renesas/ra6m4-iot/ra_cfg/SConscript
+2
-5
bsp/renesas/ra6m4-iot/ra_gen/SConscript
bsp/renesas/ra6m4-iot/ra_gen/SConscript
+2
-5
bsp/rockchip/rk2108/driver/SConscript
bsp/rockchip/rk2108/driver/SConscript
+3
-3
bsp/stm32/stm32f103-100ask-mini/SConstruct
bsp/stm32/stm32f103-100ask-mini/SConstruct
+1
-1
bsp/stm32/stm32f103-100ask-mini/board/SConscript
bsp/stm32/stm32f103-100ask-mini/board/SConscript
+2
-2
bsp/stm32/stm32f103-100ask-mini/rtconfig.py
bsp/stm32/stm32f103-100ask-mini/rtconfig.py
+1
-1
bsp/stm32/stm32f103-100ask-pro/SConstruct
bsp/stm32/stm32f103-100ask-pro/SConstruct
+1
-1
bsp/stm32/stm32f103-100ask-pro/board/SConscript
bsp/stm32/stm32f103-100ask-pro/board/SConscript
+2
-2
bsp/stm32/stm32f103-100ask-pro/rtconfig.py
bsp/stm32/stm32f103-100ask-pro/rtconfig.py
+1
-1
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
+2
-4
bsp/swm341/libraries/SConscript
bsp/swm341/libraries/SConscript
+3
-3
bsp/swm341/rtconfig.py
bsp/swm341/rtconfig.py
+2
-2
components/drivers/spi/SConscript
components/drivers/spi/SConscript
+2
-4
components/libc/cplusplus/SConscript
components/libc/cplusplus/SConscript
+7
-9
documentation/scons/scons.md
documentation/scons/scons.md
+1
-1
tools/building.py
tools/building.py
+5
-5
tools/cmake.py
tools/cmake.py
+5
-5
未找到文件。
bsp/apm32/apm32f103xe-minibroard/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/apm32/apm32f407ig-minibroard/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/apm32/apm32f407ig-minibroard/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,13 +15,13 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
if
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/APM32F4xx_Library/Device/Geehy/APM32F4xx/Source/arm/startup_apm32f40x.s'
]
if
rtconfig
.
CROSS_TOOL
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/APM32F4xx_Library/Device/Geehy/APM32F4xx/Source/iar/startup_apm32f40x.s'
]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/APM32F4xx_Library/Device/Geehy/APM32F4xx/Source/gcc/startup_apm32f40x.s'
]
# You can select chips from the list above
...
...
bsp/at32/at32f413-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f413.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f413.s'
]
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
+=
[
startup_path_prefix
+
'/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s'
]
...
...
bsp/at32/at32f415-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f415.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f415.s'
]
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
+=
[
startup_path_prefix
+
'/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s'
]
...
...
bsp/at91/at91sam9260/platform/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,10 +15,7 @@ if rtconfig.PLATFORM in ['gcc']:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
=
Glob
(
'*.c'
)
+
Glob
(
'*_iar.S'
)
if
rtconfig
.
PLATFORM
==
'cl'
:
src
=
Glob
(
'*.c'
)
if
rtconfig
.
PLATFORM
==
'mingw'
:
if
rtconfig
.
PLATFORM
in
[
'cl'
,
'mingw'
]:
src
=
Glob
(
'*.c'
)
group
=
DefineGroup
(
'Platform'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/at91/at91sam9g45/platform/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,10 +15,7 @@ if rtconfig.PLATFORM in ['gcc']:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
=
Glob
(
'*.c'
)
+
Glob
(
'*_iar.S'
)
if
rtconfig
.
PLATFORM
==
'cl'
:
src
=
Glob
(
'*.c'
)
if
rtconfig
.
PLATFORM
==
'mingw'
:
if
rtconfig
.
PLATFORM
in
[
'cl'
,
'mingw'
]:
src
=
Glob
(
'*.c'
)
group
=
DefineGroup
(
'Platform'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/cypress/psoc6-cy8cproto-4343w/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
...
...
bsp/cypress/psoc6-cy8cproto-4343w/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/IFX_PSOC6_HAL/TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S'
]
src
+=
[
startup_path_prefix
+
...
...
bsp/cypress/psoc6-cy8cproto-4343w/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armclang'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/docs/GD32_ARM系列BSP制作教程.md
浏览文件 @
dd94198b
...
...
@@ -99,7 +99,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
@@ -620,11 +620,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'
]
CPPDEFINES
=
[
'GD32F407'
]
...
...
bsp/gd32/arm/gd32103c-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32103c-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_hd.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_hd.s'
]
CPPDEFINES
=
[
'GD32F10X_HD'
]
...
...
bsp/gd32/arm/gd32103c-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32105c-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32105c-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'
]
CPPDEFINES
=
[
'GD32F10X_CL'
]
...
...
bsp/gd32/arm/gd32105c-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32105r-start/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32105r-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'
]
CPPDEFINES
=
[
'GD32F10X_CL'
]
...
...
bsp/gd32/arm/gd32105r-start/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32107c-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32107c-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'
]
CPPDEFINES
=
[
'GD32F10X_CL'
]
...
...
bsp/gd32/arm/gd32107c-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32205r-start/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32205r-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/GCC/startup_gd32f20x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s'
]
CPPDEFINES
=
[
'GD32F20X_CL'
]
...
...
bsp/gd32/arm/gd32205r-start/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32207i-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32207i-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/GCC/startup_gd32f20x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s'
]
CPPDEFINES
=
[
'GD32F20X_CL'
]
...
...
bsp/gd32/arm/gd32207i-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32303e-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32303e-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s'
]
CPPDEFINES
=
[
'GD32F30X_HD'
]
...
...
bsp/gd32/arm/gd32303e-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32305r-start/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32305r-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s'
]
CPPDEFINES
=
[
'GD32F30X_CL'
]
...
...
bsp/gd32/arm/gd32305r-start/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32307e-start/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32307e-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s'
]
CPPDEFINES
=
[
'GD32F30X_CL'
]
...
...
bsp/gd32/arm/gd32307e-start/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32407v-start/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32407v-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'
]
CPPDEFINES
=
[
'GD32F407'
]
...
...
bsp/gd32/arm/gd32407v-start/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/arm/gd32450z-eval/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/gd32/arm/gd32450z-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'
]
CPPDEFINES
=
[
'GD32F450'
]
...
...
bsp/gd32/arm/gd32450z-eval/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/gd32/risc-v/docs/GD32_RISC-V系列BSP制作教程.md
浏览文件 @
dd94198b
...
...
@@ -416,7 +416,7 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/start.S'
]
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/entry.S'
]
...
...
bsp/gd32/risc-v/gd32vf103r-start/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/start.S'
]
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/entry.S'
]
...
...
bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/start.S'
]
src
+=
[
startup_path_prefix
+
'/GD32VF103_Firmware_Library/RISCV/env_Eclipse/entry.S'
]
...
...
bsp/hc32/ev_hc32f460_lqfp100_v2/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/hc32/ev_hc32f460_lqfp100_v2/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -18,11 +18,11 @@ path += [cwd + '/config']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/hc32f460_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/GCC/startup_hc32f460.S'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/hc32f460_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/ARM/startup_hc32f460.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/hc32f460_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/IAR/startup_hc32f460.s'
]
CPPDEFINES
=
[
'HC32F460'
]
...
...
bsp/hc32/ev_hc32f460_lqfp100_v2/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,7 +22,7 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'i
ar
'
PLATFORM
=
'i
ccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.4'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/hc32/ev_hc32f4a0_lqfp176/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -21,9 +21,9 @@ path += [cwd + '/config']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/GCC/startup_hc32f4a0.S'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
startup_path_prefix
+
'/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/ARM/startup_hc32f4a0.s'
]
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
+=
[
startup_path_prefix
+
'/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/IAR/startup_hc32f4a0.s'
]
...
...
bsp/imxrt/imxrt1021-nxp-evk/applications/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,7 +7,7 @@ src = Glob('*.c')
CPPPATH
=
[
cwd
]
# add for startup script
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
CPPDEFINES
=
[
'__START=entry'
]
else
:
CPPDEFINES
=
[]
...
...
bsp/imxrt/imxrt1021-nxp-evk/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -14,7 +14,7 @@ CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
CPPDEFINES
=
[
'CPU_MIMXRT1021DAG5A'
,
'ENDIANNESS'
,
'STD=C99'
,
'SKIP_SYSCLK_INIT'
,
'EVK_MCIMXRM'
,
'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL'
,
'XIP_EXTERNAL_FLASH=1'
,
'XIP_BOOT_HEADER_ENABLE=1'
]
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
if
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
CPPDEFINES
.
append
(
'__FPU_PRESENT=1'
)
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
...
...
bsp/imxrt/imxrt1021-nxp-evk/xip/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,7 +7,7 @@ if GetDepend('BSP_USING_QSPIFLASH'):
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
if
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
LINKFLAGS
=
'--keep=*(.boot_hdr.ivt)'
LINKFLAGS
+=
'--keep=*(.boot_hdr.boot_data)'
LINKFLAGS
+=
'--keep=*(.boot_hdr.dcd_data)'
...
...
bsp/imxrt/imxrt1170-nxp-evk/applications/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,7 +7,7 @@ src = Glob('*.c')
CPPPATH
=
[
cwd
]
# add for startup script
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
CPPDEFINES
=
[
'__START=entry'
]
else
:
CPPDEFINES
=
[]
...
...
bsp/imxrt/imxrt1170-nxp-evk/xip/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,7 +7,7 @@ if GetDepend('BSP_USING_QSPIFLASH'):
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
CROSS_TOOL
==
'keil'
:
if
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
LINKFLAGS
=
' --keep=*(.boot_hdr.ivt)'
LINKFLAGS
+=
' --keep=*(.boot_hdr.boot_data)'
LINKFLAGS
+=
' --keep=*(.boot_hdr.dcd_data)'
...
...
bsp/imxrt/libraries/MIMXRT1020/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,9 +10,9 @@ src = Split('''
MIMXRT1021/drivers/fsl_cache.c
'''
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
'MIMXRT1021/gcc/startup_MIMXRT1021.S'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
'MIMXRT1021/arm/startup_MIMXRT1021.s'
]
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
+=
[
'MIMXRT1021/iar/startup_MIMXRT1021.s'
]
...
...
bsp/imxrt/libraries/MIMXRT1170/SConscript
浏览文件 @
dd94198b
...
...
@@ -14,9 +14,9 @@ src = Split('''
MIMXRT1176/drivers/cm7/fsl_cache.c
'''
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
'MIMXRT1176/gcc/startup_MIMXRT1176_cm7.S'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
'MIMXRT1176/arm/startup_MIMXRT1176_cm7.s'
]
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
src
+=
[
'MIMXRT1176/iar/startup_MIMXRT1176_cm7.s'
]
...
...
@@ -43,7 +43,7 @@ if GetDepend(['BSP_USING_SDIO']):
if
GetDepend
([
'BSP_USING_SDRAM'
]):
src
+=
[
'MIMXRT1176/drivers/fsl_semc.c'
]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
group
=
DefineGroup
(
'Libraries'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
ASFLAGS
=
'$ASFLAGS -D __STARTUP_CLEAR_BSS'
)
else
:
group
=
DefineGroup
(
'Libraries'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
)
...
...
bsp/n32/n32g45xvl-stb/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
...
...
bsp/n32/n32g45xvl-stb/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -15,11 +15,11 @@ path = [cwd]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_gcc.s'
]
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]:
src
+=
[
startup_path_prefix
+
'/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'
]
CPPDEFINES
=
[
'N32G45X'
]
...
...
bsp/n32/n32g45xvl-stb/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,8 +22,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
bsp/nrf5x/docs/nRF5x系列BSP制作教程.md
浏览文件 @
dd94198b
...
...
@@ -47,13 +47,13 @@ elif GetDepend('SOC_NRF51822') == True:
define += ['NRF51822_XXAA']
src += ['./mdk/system_nrf51.c']
if rtconfig.PLATFORM
== 'armcc'
:
if rtconfig.PLATFORM
in ['armcc']
:
src += ['./mdk/arm_startup_nrf51.s']
if rtconfig.PLATFORM
== 'gcc'
:
if rtconfig.PLATFORM
in ['gcc']
:
src += ['./mdk/gcc_startup_nrf51.S']
if rtconfig.PLATFORM
== 'iccarm'
:
if rtconfig.PLATFORM
in ['iccarm']
:
D_SRC += ['./mdk/iar_startup_nrf51.s']
```
...
...
bsp/renesas/libraries/bsp-template/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,12 +10,9 @@ CPPPATH = []
list
=
os
.
listdir
(
cwd
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
...
...
bsp/renesas/libraries/bsp-template/board/ports/SConscript
浏览文件 @
dd94198b
...
...
@@ -12,9 +12,9 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH
=
[
cwd
]
LOCAL_CFLAGS
=
''
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
or
rtconfig
.
PLATFORM
==
'armclang'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]
:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CFLAGS
+=
' --c99'
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[],
CPPPATH
=
CPPPATH
,
LOCAL_CFLAGS
=
LOCAL_CFLAGS
)
...
...
bsp/renesas/libraries/bsp-template/ra/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,18 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c'
]
src
+=
Glob
(
cwd
+
'/fsp/src/r_*/*.c'
)
CPPPATH
=
[
cwd
+
'/arm/CMSIS_5/CMSIS/Core/Include'
,
cwd
+
'/fsp/inc'
,
cwd
+
'/fsp/inc/api'
,
cwd
+
'/fsp/inc/instances'
,]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
...
...
bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,12 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
...
...
bsp/renesas/libraries/bsp-template/ra_gen/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,12 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
...
...
bsp/renesas/ra2l1-cpk/QE-Touch/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,17 +10,13 @@ CPPPATH = []
file
=
glob
.
glob
(
'*.tifcfg'
)
if
len
(
file
):
if
rtconfig
.
PLATFORM
==
'iar'
:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]
:
src
+=
[
'qe_touch_config.c'
]
src
+=
[
'qe_sample_rtthread.c'
]
CPPPATH
=
[
cwd
,
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
src
+=
[
'qe_touch_config.c'
]
src
+=
[
'qe_sample_rtthread.c'
]
CPPPATH
=
[
cwd
,
]
CPPPATH
=
[
cwd
]
CPPDEFINES
=
[
'QE_TOUCH_CONFIGURATION'
]
group
=
DefineGroup
(
'QE-Touch'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
...
...
bsp/renesas/ra2l1-cpk/SConscript
浏览文件 @
dd94198b
...
...
@@ -9,13 +9,10 @@ src = []
CPPPATH
=
[]
list
=
os
.
listdir
(
cwd
)
if
rtconfig
.
PLATFORM
==
'iar'
:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
CPPPATH
=
[
cwd
+
'./src'
]
src
=
Glob
(
'./src/*.c'
)
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
CPPPATH
=
[
cwd
+
'./src'
]
src
=
Glob
(
'./src/*.c'
)
...
...
bsp/renesas/ra2l1-cpk/SConstruct
浏览文件 @
dd94198b
...
...
@@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map project.map'
)
...
...
bsp/renesas/ra2l1-cpk/board/ports/SConscript
浏览文件 @
dd94198b
...
...
@@ -12,11 +12,11 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH
=
[
cwd
]
LOCAL_CCFLAGS
=
''
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
LOCAL_CCFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CCFLAGS
+=
' --c99'
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'armclang'
]
:
LOCAL_CCFLAGS
+=
' -std=c99'
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[],
CPPPATH
=
CPPPATH
,
LOCAL_CCFLAGS
=
LOCAL_CCFLAGS
)
...
...
bsp/renesas/ra2l1-cpk/ra/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,19 +7,10 @@ src = []
group
=
[]
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
==
'iar'
:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c'
]
src
+=
Glob
(
cwd
+
'/fsp/src/r_*/*.c'
)
CPPPATH
=
[
cwd
+
'/arm/CMSIS_5/CMSIS/Core/Include'
,
cwd
+
'/fsp/inc'
,
cwd
+
'/fsp/inc/api'
,
cwd
+
'/fsp/inc/instances'
,]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
...
...
bsp/renesas/ra2l1-cpk/ra_cfg/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,11 +7,11 @@ src = []
group
=
[]
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
==
'iar'
:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
or
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
...
...
bsp/renesas/ra2l1-cpk/ra_gen/SConscript
浏览文件 @
dd94198b
...
...
@@ -7,13 +7,10 @@ src = []
group
=
[]
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
==
'iar'
:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
==
'gcc'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
...
...
bsp/renesas/ra2l1-cpk/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -20,7 +20,7 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armclang'
EXEC_PATH
=
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench 8.0'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/renesas/ra6m4-cpk/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,12 +10,9 @@ CPPPATH = []
list
=
os
.
listdir
(
cwd
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
...
...
bsp/renesas/ra6m4-cpk/board/ports/SConscript
浏览文件 @
dd94198b
...
...
@@ -12,9 +12,9 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH
=
[
cwd
]
LOCAL_CFLAGS
=
''
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
or
rtconfig
.
PLATFORM
==
'armclang'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]
:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CFLAGS
+=
' --c99'
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[],
CPPPATH
=
CPPPATH
,
LOCAL_CFLAGS
=
LOCAL_CFLAGS
)
...
...
bsp/renesas/ra6m4-cpk/ra/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,18 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c'
]
src
+=
Glob
(
cwd
+
'/fsp/src/r_*/*.c'
)
CPPPATH
=
[
cwd
+
'/arm/CMSIS_5/CMSIS/Core/Include'
,
cwd
+
'/fsp/inc'
,
cwd
+
'/fsp/inc/api'
,
cwd
+
'/fsp/inc/instances'
,]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
...
...
bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,13 +8,10 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
...
...
bsp/renesas/ra6m4-cpk/ra_gen/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,12 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
...
...
bsp/renesas/ra6m4-iot/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,12 +10,9 @@ CPPPATH = []
list
=
os
.
listdir
(
cwd
)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
...
...
bsp/renesas/ra6m4-iot/board/ports/SConscript
浏览文件 @
dd94198b
...
...
@@ -12,9 +12,9 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH
=
[
cwd
]
LOCAL_CFLAGS
=
''
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
or
rtconfig
.
PLATFORM
==
'armclang'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]
:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CFLAGS
+=
' --c99'
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[],
CPPPATH
=
CPPPATH
,
LOCAL_CFLAGS
=
LOCAL_CFLAGS
)
...
...
bsp/renesas/ra6m4-iot/ra/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,18 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c'
]
src
+=
Glob
(
cwd
+
'/fsp/src/r_*/*.c'
)
CPPPATH
=
[
cwd
+
'/arm/CMSIS_5/CMSIS/Core/Include'
,
cwd
+
'/fsp/inc'
,
cwd
+
'/fsp/inc/api'
,
cwd
+
'/fsp/inc/instances'
,]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
...
...
bsp/renesas/ra6m4-iot/ra_cfg/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,12 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
...
...
bsp/renesas/ra6m4-iot/ra_gen/SConscript
浏览文件 @
dd94198b
...
...
@@ -8,12 +8,9 @@ group = []
CPPPATH
=
[]
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support
iar
build
\n
"
)
print
(
"
\n
The current project does not support
IAR
build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
elif
rtconfig
.
PLATFORM
==
'armclang'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
...
...
bsp/rockchip/rk2108/driver/SConscript
浏览文件 @
dd94198b
...
...
@@ -6,11 +6,11 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
CPPPATH
=
[
cwd
,
str
(
Dir
(
'#'
))]
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
Glob
(
RTT_ROOT
+
'/bsp/rockchip/common/drivers/drv_cache_gcc.S'
)
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
Glob
(
RTT_ROOT
+
'/bsp/rockchip/common/drivers/drv_cache_arm.s'
)
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
Glob
(
RTT_ROOT
+
'/bsp/rockchip/common/drivers/drv_cache_iar.s'
)
group
=
DefineGroup
(
'driver'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/stm32/stm32f103-100ask-mini/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
...
...
bsp/stm32/stm32f103-100ask-mini/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -21,11 +21,11 @@ path += [cwd + '/ports']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s'
]
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s'
]
# STM32F100xB || STM32F100xE || STM32F101x6
...
...
bsp/stm32/stm32f103-100ask-mini/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,7 +22,7 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.2'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32/stm32f103-100ask-pro/SConstruct
浏览文件 @
dd94198b
...
...
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
if
rtconfig
.
PLATFORM
==
'iar'
:
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
...
...
bsp/stm32/stm32f103-100ask-pro/board/SConscript
浏览文件 @
dd94198b
...
...
@@ -21,11 +21,11 @@ path += [cwd + '/ports']
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s'
]
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
startup_path_prefix
+
'/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s'
]
# STM32F100xB || STM32F100xE || STM32F101x6
...
...
bsp/stm32/stm32f103-100ask-pro/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -22,7 +22,7 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.2'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
浏览文件 @
dd94198b
...
...
@@ -10,12 +10,10 @@ src += Glob('*.c')
CPPPATH
=
[
cwd
]
LOCAL_CFLAGS
=
''
if
rtconfig
.
PLATFORM
in
[
'gcc'
]:
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CFLAGS
+=
' --c99'
elif
rtconfig
.
PLATFORM
==
'armclang'
:
LOCAL_CFLAGS
+=
' -std=c99'
group
=
DefineGroup
(
'FAL'
,
src
,
depend
=
[
'RT_USING_FAL'
],
CPPPATH
=
CPPPATH
,
LOCAL_CFLAGS
=
LOCAL_CFLAGS
)
...
...
bsp/swm341/libraries/SConscript
浏览文件 @
dd94198b
...
...
@@ -6,11 +6,11 @@ CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM
src
+=
Glob
(
'SWM341_StdPeriph_Driver/*.c'
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
src
+=
[
'CMSIS/DeviceSupport/startup/gcc/startup_SWM341.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'keil'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]
:
src
+=
[
'CMSIS/DeviceSupport/startup/arm/startup_SWM341.s'
]
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
elif
rtconfig
.
PLATFORM
in
[
'iccarm'
]
:
src
+=
[
'CMSIS/DeviceSupport/startup/iar/startup_SWM341.s'
]
group
=
DefineGroup
(
'Libraries'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
)
...
...
bsp/swm341/rtconfig.py
浏览文件 @
dd94198b
...
...
@@ -19,8 +19,8 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armclang'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
0
'
PLATFORM
=
'iccarm
'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.
3
'
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
EXEC_PATH
=
os
.
getenv
(
'RTT_EXEC_PATH'
)
...
...
components/drivers/spi/SConscript
浏览文件 @
dd94198b
...
...
@@ -29,12 +29,10 @@ if GetDepend('RT_USING_SFUD'):
if
GetDepend
(
'RT_SFUD_USING_SFDP'
):
src_device
+=
[
'sfud/src/sfud_sfdp.c'
]
if
rtconfig
.
PLATFORM
in
[
'gcc'
]:
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
]:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
==
'armcc'
:
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
LOCAL_CFLAGS
+=
' --c99'
elif
rtconfig
.
PLATFORM
==
'armclang'
:
LOCAL_CFLAGS
+=
' -std=c99'
src
+=
src_device
...
...
components/libc/cplusplus/SConscript
浏览文件 @
dd94198b
...
...
@@ -5,18 +5,16 @@ Import('rtconfig')
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.cpp'
)
+
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
if
GetDepend
(
'RT_USING_CPLUSPLUS11'
):
src
+=
Glob
(
'cpp11/*.cpp'
)
+
Glob
(
'cpp11/*.c'
)
CPPPATH
=
[
cwd
]
if
rtconfig
.
PLATFORM
==
'armclang'
and
GetDepend
(
'RT_USING_CPLUSPLUS11'
):
src
+=
Glob
(
'cpp11/armclang/*.cpp'
)
+
Glob
(
'cpp11/armclang/*.c'
)
CPPPATH
+=
[
cwd
+
'/cpp11/armclang'
]
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
and
GetDepend
(
'RT_USING_CPLUSPLUS11'
):
src
+=
Glob
(
'cpp11/gcc/*.cpp'
)
+
Glob
(
'cpp11/gcc/*.c'
)
CPPPATH
+=
[
cwd
+
'/cpp11/gcc'
]
if
rtconfig
.
PLATFORM
in
[
'armclang'
]:
src
+=
Glob
(
'cpp11/armclang/*.cpp'
)
+
Glob
(
'cpp11/armclang/*.c'
)
CPPPATH
+=
[
cwd
+
'/cpp11/armclang'
]
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]:
src
+=
Glob
(
'cpp11/gcc/*.cpp'
)
+
Glob
(
'cpp11/gcc/*.c'
)
CPPPATH
+=
[
cwd
+
'/cpp11/gcc'
]
group
=
DefineGroup
(
'CPlusPlus'
,
src
,
depend
=
[
'RT_USING_CPLUSPLUS'
],
CPPPATH
=
CPPPATH
)
...
...
documentation/scons/scons.md
浏览文件 @
dd94198b
...
...
@@ -245,7 +245,7 @@ if GetDepend(['RT_USING_USB_DEVICE']):
if
GetDepend
([
'
RT_USING_SDCARD
'
])
:
src
+=
[
'
drv_sdcard
.
c
'
]
if
rtconfig
.
PLATFORM
==
'
gcc
'
:
if
rtconfig
.
PLATFORM
in
[
'
gcc
'
]
:
src
+=
[
'
gcc_startup
.
s
'
]
CPPPATH
=
[
cwd
]
...
...
tools/building.py
浏览文件 @
dd94198b
...
...
@@ -124,7 +124,7 @@ class Win32Spawn:
# generate cconfig.h file
def
GenCconfigFile
(
env
,
BuildOptions
):
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
contents
=
''
if
not
os
.
path
.
isfile
(
'cconfig.h'
):
import
gcc
...
...
@@ -287,7 +287,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
GenCconfigFile
(
env
,
BuildOptions
)
# auto append '_REENT_SMALL' when using newlib 'nano.specs' option
if
rtconfig
.
PLATFORM
==
'gcc'
and
str
(
env
[
'LINKFLAGS'
]).
find
(
'nano.specs'
)
!=
-
1
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
and
str
(
env
[
'LINKFLAGS'
]).
find
(
'nano.specs'
)
!=
-
1
:
env
.
AppendUnique
(
CPPDEFINES
=
[
'_REENT_SMALL'
])
if
GetOption
(
'genconfig'
):
...
...
@@ -618,7 +618,7 @@ def DefineGroup(name, src, depend, **parameters):
group
[
'LOCAL_CPPPATH'
]
=
paths
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
if
'CFLAGS'
in
group
:
group
[
'CFLAGS'
]
=
utils
.
GCCC99Patch
(
group
[
'CFLAGS'
])
if
'CCFLAGS'
in
group
:
...
...
@@ -695,9 +695,9 @@ def PreBuilding():
def
GroupLibName
(
name
,
env
):
if
rtconfig
.
PLATFORM
==
'armcc'
:
if
rtconfig
.
PLATFORM
in
[
'armcc'
]
:
return
name
+
'_rvds'
elif
rtconfig
.
PLATFORM
==
'gcc'
:
elif
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
return
name
+
'_gcc'
return
name
...
...
tools/cmake.py
浏览文件 @
dd94198b
...
...
@@ -25,7 +25,7 @@ def GenerateCFiles(env,project):
AS
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
AS
).
replace
(
'
\\
'
,
"/"
)
AR
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
AR
).
replace
(
'
\\
'
,
"/"
)
LINK
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
LINK
).
replace
(
'
\\
'
,
"/"
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
SIZE
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
SIZE
).
replace
(
'
\\
'
,
"/"
)
OBJDUMP
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
OBJDUMP
).
replace
(
'
\\
'
,
"/"
)
OBJCOPY
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
rtconfig
.
OBJCPY
).
replace
(
'
\\
'
,
"/"
)
...
...
@@ -47,7 +47,7 @@ def GenerateCFiles(env,project):
AS
+=
".exe"
AR
+=
".exe"
LINK
+=
".exe"
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
SIZE
+=
".exe"
OBJDUMP
+=
".exe"
OBJCOPY
+=
".exe"
...
...
@@ -78,7 +78,7 @@ def GenerateCFiles(env,project):
cm_file
.
write
(
"SET(CMAKE_CXX_FLAGS
\"
"
+
CXXFLAGS
+
"
\"
)
\n
"
)
cm_file
.
write
(
"SET(CMAKE_CXX_COMPILER_WORKS TRUE)
\n\n
"
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
cm_file
.
write
(
"SET(CMAKE_OBJCOPY
\"
"
+
OBJCOPY
+
"
\"
)
\n
"
)
cm_file
.
write
(
"SET(CMAKE_SIZE
\"
"
+
SIZE
+
"
\"
)
\n\n
"
)
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]:
...
...
@@ -86,7 +86,7 @@ def GenerateCFiles(env,project):
LINKER_FLAGS
=
''
LINKER_LIBS
=
''
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
LINKER_FLAGS
+=
'-T'
elif
rtconfig
.
PLATFORM
in
[
'armcc'
,
'armclang'
]:
LINKER_FLAGS
+=
'--scatter'
...
...
@@ -126,7 +126,7 @@ def GenerateCFiles(env,project):
cm_file
.
write
(
"
\t
"
+
path
.
replace
(
"
\\
"
,
"/"
)
+
"
\n
"
)
cm_file
.
write
(
")
\n\n
"
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
if
rtconfig
.
PLATFORM
in
[
'gcc'
]
:
cm_file
.
write
(
"LINK_DIRECTORIES(
\n
"
)
for
group
in
project
:
if
'LIBPATH'
in
group
.
keys
():
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录