提交 9e884249 编写于 作者: B bernard.xiong@gmail.com

fixed RTT_ROOT directory issue if there is a components directory under BSP.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1972 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 9d61fc32
...@@ -115,15 +115,15 @@ def PrepareBuilding(env, root_directory, has_libcpu=False): ...@@ -115,15 +115,15 @@ def PrepareBuilding(env, root_directory, has_libcpu=False):
#env['LINKCOMSTR'] = "Link $TARGET" #env['LINKCOMSTR'] = "Link $TARGET"
# board build script # board build script
objs = SConscript('SConscript', variant_dir='build/bsp', duplicate=0) objs = SConscript('SConscript', variant_dir='build', duplicate=0)
Repository(Rtt_Root) Repository(Rtt_Root)
# include kernel # include kernel
objs.append(SConscript('src/SConscript', variant_dir='build/src', duplicate=0)) objs.append(SConscript(Rtt_Root + '/src/SConscript', variant_dir='build/src', duplicate=0))
# include libcpu # include libcpu
if not has_libcpu: if not has_libcpu:
objs.append(SConscript('libcpu/SConscript', variant_dir='build/libcpu', duplicate=0)) objs.append(SConscript(Rtt_Root + '/libcpu/SConscript', variant_dir='build/libcpu', duplicate=0))
# include components # include components
objs.append(SConscript('components/SConscript', variant_dir='build/components', duplicate=0)) objs.append(SConscript(Rtt_Root + '/components/SConscript', variant_dir='build/components', duplicate=0))
return objs return objs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册