Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
921247b4
R
rt-thread
项目概览
2345VOR
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
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,发现更多精彩内容 >>
提交
921247b4
编写于
3月 29, 2022
作者:
G
guozhanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp/stm32] improve build output.
上级
ce602a6e
变更
87
隐藏空白更改
内联
并排
Showing
87 changed file
with
1154 addition
and
209 deletion
+1154
-209
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32f10x/SConstruct
bsp/stm32/libraries/templates/stm32f10x/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32f2xx/SConstruct
bsp/stm32/libraries/templates/stm32f2xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32f3xx/SConstruct
bsp/stm32/libraries/templates/stm32f3xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32h7xx/SConstruct
bsp/stm32/libraries/templates/stm32h7xx/SConstruct
+14
-3
bsp/stm32/libraries/templates/stm32l1xx/SConstruct
bsp/stm32/libraries/templates/stm32l1xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32l5xx/SConstruct
bsp/stm32/libraries/templates/stm32l5xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32mp1xx/SConstruct
bsp/stm32/libraries/templates/stm32mp1xx/SConstruct
+13
-2
bsp/stm32/libraries/templates/stm32wbxx/SConstruct
bsp/stm32/libraries/templates/stm32wbxx/SConstruct
+13
-2
bsp/stm32/stm32f072-st-nucleo/SConstruct
bsp/stm32/stm32f072-st-nucleo/SConstruct
+14
-3
bsp/stm32/stm32f091-st-nucleo/SConstruct
bsp/stm32/stm32f091-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f103-atk-nano/SConstruct
bsp/stm32/stm32f103-atk-nano/SConstruct
+13
-2
bsp/stm32/stm32f103-atk-warshipv3/SConstruct
bsp/stm32/stm32f103-atk-warshipv3/SConstruct
+13
-2
bsp/stm32/stm32f103-blue-pill/SConstruct
bsp/stm32/stm32f103-blue-pill/SConstruct
+13
-2
bsp/stm32/stm32f103-dofly-M3S/SConstruct
bsp/stm32/stm32f103-dofly-M3S/SConstruct
+15
-4
bsp/stm32/stm32f103-dofly-lyc8/SConstruct
bsp/stm32/stm32f103-dofly-lyc8/SConstruct
+14
-3
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
+13
-2
bsp/stm32/stm32f103-gizwits-gokitv21/SConstruct
bsp/stm32/stm32f103-gizwits-gokitv21/SConstruct
+13
-2
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
+13
-2
bsp/stm32/stm32f103-onenet-nbiot/SConstruct
bsp/stm32/stm32f103-onenet-nbiot/SConstruct
+13
-2
bsp/stm32/stm32f103-yf-ufun/SConstruct
bsp/stm32/stm32f103-yf-ufun/SConstruct
+13
-2
bsp/stm32/stm32f107-uc-eval/SConstruct
bsp/stm32/stm32f107-uc-eval/SConstruct
+13
-2
bsp/stm32/stm32f207-st-nucleo/SConstruct
bsp/stm32/stm32f207-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f302-st-nucleo/SConstruct
bsp/stm32/stm32f302-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f401-st-nucleo/SConstruct
bsp/stm32/stm32f401-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f405-smdz-breadfruit/SConstruct
bsp/stm32/stm32f405-smdz-breadfruit/SConstruct
+14
-3
bsp/stm32/stm32f407-armfly-v5/SConstruct
bsp/stm32/stm32f407-armfly-v5/SConstruct
+13
-2
bsp/stm32/stm32f407-atk-explorer/SConstruct
bsp/stm32/stm32f407-atk-explorer/SConstruct
+13
-2
bsp/stm32/stm32f407-robomaster-c/SConstruct
bsp/stm32/stm32f407-robomaster-c/SConstruct
+13
-2
bsp/stm32/stm32f407-st-discovery/SConstruct
bsp/stm32/stm32f407-st-discovery/SConstruct
+15
-4
bsp/stm32/stm32f410-st-nucleo/SConstruct
bsp/stm32/stm32f410-st-nucleo/SConstruct
+15
-4
bsp/stm32/stm32f411-atk-nano/SConstruct
bsp/stm32/stm32f411-atk-nano/SConstruct
+13
-2
bsp/stm32/stm32f411-st-nucleo/SConstruct
bsp/stm32/stm32f411-st-nucleo/SConstruct
+15
-4
bsp/stm32/stm32f411-weact-MiniF4/SConstruct
bsp/stm32/stm32f411-weact-MiniF4/SConstruct
+15
-4
bsp/stm32/stm32f412-st-nucleo/SConstruct
bsp/stm32/stm32f412-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f413-st-nucleo/SConstruct
bsp/stm32/stm32f413-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f427-robomaster-a/SConstruct
bsp/stm32/stm32f427-robomaster-a/SConstruct
+13
-2
bsp/stm32/stm32f429-armfly-v6/SConstruct
bsp/stm32/stm32f429-armfly-v6/SConstruct
+13
-2
bsp/stm32/stm32f429-atk-apollo/SConstruct
bsp/stm32/stm32f429-atk-apollo/SConstruct
+13
-2
bsp/stm32/stm32f429-fire-challenger/SConstruct
bsp/stm32/stm32f429-fire-challenger/SConstruct
+13
-2
bsp/stm32/stm32f429-st-disco/SConstruct
bsp/stm32/stm32f429-st-disco/SConstruct
+15
-4
bsp/stm32/stm32f446-st-nucleo/SConstruct
bsp/stm32/stm32f446-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f469-st-disco/SConstruct
bsp/stm32/stm32f469-st-disco/SConstruct
+14
-6
bsp/stm32/stm32f746-st-disco/SConstruct
bsp/stm32/stm32f746-st-disco/SConstruct
+13
-2
bsp/stm32/stm32f746-st-nucleo/SConstruct
bsp/stm32/stm32f746-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f767-atk-apollo/SConstruct
bsp/stm32/stm32f767-atk-apollo/SConstruct
+13
-2
bsp/stm32/stm32f767-fire-challenger-v1/SConstruct
bsp/stm32/stm32f767-fire-challenger-v1/SConstruct
+13
-2
bsp/stm32/stm32f767-st-nucleo/SConstruct
bsp/stm32/stm32f767-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32f769-st-disco/SConstruct
bsp/stm32/stm32f769-st-disco/SConstruct
+13
-2
bsp/stm32/stm32g070-st-nucleo/SConstruct
bsp/stm32/stm32g070-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32g071-st-nucleo/SConstruct
bsp/stm32/stm32g071-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32g431-st-nucleo/SConstruct
bsp/stm32/stm32g431-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32g474-st-nucleo/SConstruct
bsp/stm32/stm32g474-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32h743-armfly-V7/SConstruct
bsp/stm32/stm32h743-armfly-V7/SConstruct
+14
-3
bsp/stm32/stm32h743-atk-apollo/SConstruct
bsp/stm32/stm32h743-atk-apollo/SConstruct
+13
-2
bsp/stm32/stm32h743-openmv-h7plus/SConstruct
bsp/stm32/stm32h743-openmv-h7plus/SConstruct
+13
-2
bsp/stm32/stm32h743-st-nucleo/SConstruct
bsp/stm32/stm32h743-st-nucleo/SConstruct
+14
-3
bsp/stm32/stm32h747-st-discovery/SConstruct
bsp/stm32/stm32h747-st-discovery/SConstruct
+14
-3
bsp/stm32/stm32h750-armfly-h7-tool/SConstruct
bsp/stm32/stm32h750-armfly-h7-tool/SConstruct
+14
-3
bsp/stm32/stm32h750-artpi-h750/SConstruct
bsp/stm32/stm32h750-artpi-h750/SConstruct
+14
-3
bsp/stm32/stm32l010-st-nucleo/SConstruct
bsp/stm32/stm32l010-st-nucleo/SConstruct
+14
-3
bsp/stm32/stm32l053-st-nucleo/SConstruct
bsp/stm32/stm32l053-st-nucleo/SConstruct
+14
-3
bsp/stm32/stm32l412-st-nucleo/SConstruct
bsp/stm32/stm32l412-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l431-BearPi/SConstruct
bsp/stm32/stm32l431-BearPi/SConstruct
+13
-2
bsp/stm32/stm32l432-st-nucleo/SConstruct
bsp/stm32/stm32l432-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l433-ali-startkit/SConstruct
bsp/stm32/stm32l433-ali-startkit/SConstruct
+13
-2
bsp/stm32/stm32l433-st-nucleo/SConstruct
bsp/stm32/stm32l433-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l452-st-nucleo/SConstruct
bsp/stm32/stm32l452-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l475-atk-pandora/SConstruct
bsp/stm32/stm32l475-atk-pandora/SConstruct
+12
-3
bsp/stm32/stm32l475-atk-pandora/board/SConscript
bsp/stm32/stm32l475-atk-pandora/board/SConscript
+4
-3
bsp/stm32/stm32l475-st-discovery/SConstruct
bsp/stm32/stm32l475-st-discovery/SConstruct
+15
-4
bsp/stm32/stm32l476-st-nucleo/SConstruct
bsp/stm32/stm32l476-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l496-ali-developer/SConstruct
bsp/stm32/stm32l496-ali-developer/SConstruct
+13
-2
bsp/stm32/stm32l496-st-nucleo/SConstruct
bsp/stm32/stm32l496-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32l4r5-st-nucleo/SConstruct
bsp/stm32/stm32l4r5-st-nucleo/SConstruct
+14
-2
bsp/stm32/stm32l4r9-st-eval/SConstruct
bsp/stm32/stm32l4r9-st-eval/SConstruct
+15
-4
bsp/stm32/stm32l4r9-st-sensortile-box/SConstruct
bsp/stm32/stm32l4r9-st-sensortile-box/SConstruct
+15
-4
bsp/stm32/stm32l552-st-nucleo/SConstruct
bsp/stm32/stm32l552-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32mp157a-st-discovery/SConstruct
bsp/stm32/stm32mp157a-st-discovery/SConstruct
+13
-2
bsp/stm32/stm32mp157a-st-ev1/SConstruct
bsp/stm32/stm32mp157a-st-ev1/SConstruct
+13
-2
bsp/stm32/stm32u575-st-nucleo/SConstruct
bsp/stm32/stm32u575-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32wb55-st-nucleo/SConstruct
bsp/stm32/stm32wb55-st-nucleo/SConstruct
+13
-2
bsp/stm32/stm32wl55-st-nucleo/SConstruct
bsp/stm32/stm32wl55-st-nucleo/SConstruct
+14
-2
bsp/stm32/stm32wle5-yizhilian-lm401/SConstruct
bsp/stm32/stm32wle5-yizhilian-lm401/SConstruct
+14
-2
未找到文件。
bsp/stm32/libraries/templates/stm32f0xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F0xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32f10x/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32f2xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F2xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32f3xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F3xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32f4xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32f7xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32h7xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32l1xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32l4xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32l5xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L5xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32mp1xx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32MPxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/libraries/templates/stm32wbxx/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32WBxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f072-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rt-thread
_acm32f030
.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F0xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f091-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F0xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-atk-nano/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-atk-warshipv3/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-blue-pill/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-dofly-M3S/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-dofly-lyc8/SConstruct
浏览文件 @
921247b4
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
[
'$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'
]
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt-thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-fire-arbitrary/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-gizwits-gokitv21/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-hw100k-ibox/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-onenet-nbiot/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f103-yf-ufun/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f107-uc-eval/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F1xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f207-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F2xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f302-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F3xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f401-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f405-smdz-breadfruit/SConstruct
浏览文件 @
921247b4
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f407-armfly-v5/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f407-atk-explorer/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f407-robomaster-c/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f407-st-discovery/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f410-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f411-atk-nano/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f411-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f411-weact-MiniF4/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f412-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f413-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f427-robomaster-a/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f429-armfly-v6/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f429-atk-apollo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f429-fire-challenger/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f429-st-disco/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f446-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f469-st-disco/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,14 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
# include ports
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f746-st-disco/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f746-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f767-atk-apollo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f767-fire-challenger-v1/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f767-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32f769-st-disco/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32F7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32g070-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32G0xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32g071-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32G0xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32g431-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32G4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32g474-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32G4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h743-armfly-V7/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h743-atk-apollo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h743-openmv-h7plus/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h743-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h747-st-discovery/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h750-armfly-h7-tool/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32h750-artpi-h750/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32H7xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l010-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,20 +41,31 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
# prepare building environment
objs
=
PrepareBuilding
(
env
,
RTT_ROOT
,
has_libcpu
=
False
)
stm32_library
=
'STM32L
0
xx_HAL'
stm32_library
=
'STM32L
4
xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l053-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,20 +41,31 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
# prepare building environment
objs
=
PrepareBuilding
(
env
,
RTT_ROOT
,
has_libcpu
=
False
)
stm32_library
=
'STM32L
0
xx_HAL'
stm32_library
=
'STM32L
4
xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l412-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l431-BearPi/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l432-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l433-ali-startkit/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l433-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l452-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l475-atk-pandora/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,13 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l475-atk-pandora/board/SConscript
浏览文件 @
921247b4
...
...
@@ -17,7 +17,7 @@ if GetDepend(['BSP_USING_KEY']):
if
GetDepend
([
'BSP_USING_QSPI_FLASH'
]):
src
+=
Glob
(
'ports/drv_qspi_flash.c'
)
if
GetDepend
([
'BSP_USING_SDCARD'
]):
src
+=
Glob
(
'ports/drv_sdcard.c'
)
...
...
@@ -39,7 +39,7 @@ path += [cwd + '/CubeMX_Config/Inc']
if
GetDepend
([
'BSP_USING_AUDIO'
]):
path
+=
[
cwd
+
'/ports/audio'
]
startup_path_prefix
=
SDK_LIB
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
...
...
@@ -49,7 +49,8 @@ elif rtconfig.CROSS_TOOL == 'keil':
elif
rtconfig
.
CROSS_TOOL
==
'iar'
:
src
+=
[
startup_path_prefix
+
'/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s'
]
CPPDEFINES
=
[
'STM32L475xx'
]
CPPDEFINES
=
[
'STM32L475xx'
]
group
=
DefineGroup
(
'Drivers'
,
src
,
depend
=
[
''
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
bsp/stm32/stm32l475-st-discovery/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l476-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l496-ali-developer/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l496-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l4r5-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -17,6 +17,7 @@ except:
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
...
...
@@ -40,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -49,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l4r9-st-eval/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l4r9-st-sensortile-box/SConstruct
浏览文件 @
921247b4
...
...
@@ -15,7 +15,7 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt
-
thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
...
...
@@ -29,7 +29,7 @@ env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if
rtconfig
.
PLATFORM
==
'iar'
:
env
.
Replace
(
CCCOM
=
[
'$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'
])
env
.
Replace
(
ARFLAGS
=
[
''
])
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rtthread.map'
)
env
.
Replace
(
LINKCOM
=
env
[
"LINKCOM"
]
+
' --map rt
-
thread.map'
)
Export
(
'RTT_ROOT'
)
Export
(
'rtconfig'
)
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L4xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32l552-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32L5xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32mp157a-st-discovery/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32MPxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32mp157a-st-ev1/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32MPxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32u575-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32U5xx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32wb55-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -41,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -50,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32WBxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32wl55-st-nucleo/SConstruct
浏览文件 @
921247b4
...
...
@@ -17,6 +17,7 @@ except:
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
...
...
@@ -40,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -49,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32WLxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
bsp/stm32/stm32wle5-yizhilian-lm401/SConstruct
浏览文件 @
921247b4
...
...
@@ -17,6 +17,7 @@ except:
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
...
...
@@ -40,6 +41,9 @@ if os.path.exists(SDK_ROOT + '/libraries'):
else
:
libraries_path_prefix
=
os
.
path
.
dirname
(
SDK_ROOT
)
+
'/libraries'
from
utils
import
_make_path_relative
libraries_path_prefix
=
_make_path_relative
(
os
.
path
.
abspath
(
'./'
),
libraries_path_prefix
)
SDK_LIB
=
libraries_path_prefix
Export
(
'SDK_LIB'
)
...
...
@@ -49,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
stm32_library
=
'STM32WLxx_HAL'
rtconfig
.
BSP_LIBRARY_TYPE
=
stm32_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
stm32_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
stm32_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'HAL_Drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/HAL_Drivers'
,
duplicate
=
0
))
bsp_port_script
=
os
.
path
.
join
(
os
.
getcwd
(),
'board'
,
'ports'
,
'SConscript'
)
if
os
.
path
.
isfile
(
bsp_port_script
):
objs
.
extend
(
SConscript
(
bsp_port_script
,
variant_dir
=
bsp_vdir
+
'/board/ports'
,
duplicate
=
0
))
# make a building
DoBuilding
(
TARGET
,
objs
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录