提交 a7c1e7c3 编写于 作者: B bernard.xiong

update scons build script

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@117 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 fc91e49c
...@@ -44,26 +44,9 @@ cflags = cc_cflags ...@@ -44,26 +44,9 @@ cflags = cc_cflags
# search path for C compiler # search path for C compiler
kernel_path = [RTT_ROOT + '/include', RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU] kernel_path = [RTT_ROOT + '/include', RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU]
finsh_path = [RTT_ROOT + '/finsh']
dfs_path = [RTT_ROOT + '/filesystem/dfs/include', RTT_ROOT + '/filesystem/dfs']
lwip_path = [RTT_ROOT + '/net/lwip/src', RTT_ROOT + '/net/lwip/src/include', RTT_ROOT + '/net/lwip/src/include/ipv4', RTT_ROOT + '/net/lwip/src/arch/include']
bsp_path = [RTT_ROOT + '/bsp/stm3210', RTT_ROOT + '/bsp/stm3210/Libraries/STM32F10x_StdPeriph_Driver/inc', RTT_ROOT + '/bsp/stm3210/Libraries/CMSIS/Core/CM3'] bsp_path = [RTT_ROOT + '/bsp/stm3210', RTT_ROOT + '/bsp/stm3210/Libraries/STM32F10x_StdPeriph_Driver/inc', RTT_ROOT + '/bsp/stm3210/Libraries/CMSIS/Core/CM3']
minilibc_path = [RTT_ROOT + '/libc/minilibc']
cpath = kernel_path cpath = kernel_path + bsp_path
if rtconfig.RT_USING_FINSH:
cpath = cpath + finsh_path
if rtconfig.RT_USING_DFS:
cpath = cpath + dfs_path
if rtconfig.RT_USING_LWIP:
cpath = cpath + lwip_path
if rtconfig.RT_USING_MINILIBC:
cpath = cpath + minilibc_path
cpath = cpath + [cc_cpath] + bsp_path
# link flag # link flag
lflags = device + cc_lflags lflags = device + cc_lflags
......
...@@ -60,11 +60,11 @@ src/netif/ppp/vj.c ...@@ -60,11 +60,11 @@ src/netif/ppp/vj.c
""") """)
# The set of source files associated with this SConscript file. # The set of source files associated with this SConscript file.
path = [RTT_ROOT + '/net/lwip/src/include', RTT_ROOT + '/net/lwip/src/include/ipv4', RTT_ROOT + '/net/lwip/src/arch/include/arch', RTT_ROOT + '/net/lwip/src/include/netif', RTT_ROOT + '/net/lwip/src/netif/ppp'] path = [RTT_ROOT + '/net/lwip/src', RTT_ROOT + '/net/lwip/src/include', RTT_ROOT + '/net/lwip/src/include/ipv4', RTT_ROOT + '/net/lwip/src/arch/include', RTT_ROOT + '/net/lwip/src/include/netif', RTT_ROOT + '/net/lwip/src/netif/ppp']
env.Clone() env.Clone()
env.Append(CPPPATH = path) env.Append(CPPPATH = path)
obj = lwip_env.Object(src_local) obj = env.Object(src_local)
Return('obj') Return('obj')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册