Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天中雨水
rt-thread
提交
1b603195
R
rt-thread
项目概览
天中雨水
/
rt-thread
该项目与 Fork 源项目分叉
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1b603195
编写于
3月 30, 2022
作者:
G
guozhanxin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp/imxrt] improve build output.
上级
921247b4
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
207 addition
and
182 deletion
+207
-182
bsp/imxrt/imxrt1052-atk-commander/SConstruct
bsp/imxrt/imxrt1052-atk-commander/SConstruct
+22
-22
bsp/imxrt/imxrt1052-fire-pro/SConstruct
bsp/imxrt/imxrt1052-fire-pro/SConstruct
+22
-22
bsp/imxrt/imxrt1052-nxp-evk/SConstruct
bsp/imxrt/imxrt1052-nxp-evk/SConstruct
+21
-24
bsp/imxrt/imxrt1052-seeed-ArchMix/SConstruct
bsp/imxrt/imxrt1052-seeed-ArchMix/SConstruct
+22
-22
bsp/imxrt/imxrt1060-nxp-evk/SConstruct
bsp/imxrt/imxrt1060-nxp-evk/SConstruct
+22
-24
bsp/imxrt/imxrt1064-nxp-evk/SConstruct
bsp/imxrt/imxrt1064-nxp-evk/SConstruct
+22
-24
bsp/imxrt/libraries/templates/imxrt1050xxx/SConstruct
bsp/imxrt/libraries/templates/imxrt1050xxx/SConstruct
+38
-22
bsp/imxrt/libraries/templates/imxrt1064xxx/SConstruct
bsp/imxrt/libraries/templates/imxrt1064xxx/SConstruct
+38
-22
未找到文件。
bsp/imxrt/imxrt1052-atk-commander/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,32 +15,21 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
...
...
@@ -52,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'
)
...
...
@@ -61,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1050'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/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/imxrt/imxrt1052-fire-pro/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,32 +15,21 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
...
...
@@ -52,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'
)
...
...
@@ -61,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1050'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/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/imxrt/imxrt1052-nxp-evk/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,32 +15,21 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
...
...
@@ -52,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'
)
...
...
@@ -61,14 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1050'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/drivers'
,
duplicate
=
0
))
# include peripherals
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'peripherals'
,
'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/imxrt/imxrt1052-seeed-ArchMix/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,32 +15,21 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
...
...
@@ -52,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'
)
...
...
@@ -61,11 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1050'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/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/imxrt/imxrt1060-nxp-evk/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,42 +15,35 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
SDK_ROOT
=
os
.
path
.
abspath
(
'./'
)
if
os
.
path
.
exists
(
SDK_ROOT
+
'/libraries'
):
libraries_path_prefix
=
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'
)
...
...
@@ -60,14 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1060'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/drivers'
,
duplicate
=
0
))
# include peripherals
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'peripherals'
,
'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/imxrt/imxrt1064-nxp-evk/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,42 +15,35 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
SDK_ROOT
=
os
.
path
.
abspath
(
'./'
)
if
os
.
path
.
exists
(
SDK_ROOT
+
'/libraries'
):
libraries_path_prefix
=
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'
)
...
...
@@ -60,14 +53,19 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
imxrt_library
=
'MIMXRT1064'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
)))
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/drivers'
,
duplicate
=
0
))
# include peripherals
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'peripherals'
,
'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/imxrt/libraries/templates/imxrt1050xxx/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,41 +15,57 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
SDK_ROOT
=
os
.
path
.
abspath
(
'./'
)
if
os
.
path
.
exists
(
SDK_ROOT
+
'/libraries'
):
libraries_path_prefix
=
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
)
objs
=
objs
+
SConscript
(
'../libraries/drivers/SConscript'
)
objs
=
objs
+
SConscript
(
'../libraries/MIMXRT1050/SConscript'
)
imxrt_library
=
'MIMXRT1050'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/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/imxrt/libraries/templates/imxrt1064xxx/SConstruct
浏览文件 @
1b603195
...
...
@@ -15,41 +15,57 @@ except:
print
(
RTT_ROOT
)
exit
(
-
1
)
TARGET
=
'rtthread.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rt-thread.'
+
rtconfig
.
TARGET_EXT
DefaultEnvironment
(
tools
=
[])
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
CXXCOM
=
'$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
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'
)
SDK_ROOT
=
os
.
path
.
abspath
(
'./'
)
if
os
.
path
.
exists
(
SDK_ROOT
+
'/libraries'
):
libraries_path_prefix
=
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
)
objs
=
objs
+
SConscript
(
'../libraries/drivers/SConscript'
)
objs
=
objs
+
SConscript
(
'../libraries/MIMXRT1064/SConscript'
)
imxrt_library
=
'MIMXRT1060'
rtconfig
.
BSP_LIBRARY_TYPE
=
imxrt_library
bsp_vdir
=
'build'
# include libraries
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
imxrt_library
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/'
+
imxrt_library
,
duplicate
=
0
))
# include drivers
objs
.
extend
(
SConscript
(
os
.
path
.
join
(
libraries_path_prefix
,
'drivers'
,
'SConscript'
),
variant_dir
=
bsp_vdir
+
'/libraries/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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录