forked from springcute/rt-thread
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
This commit is contained in:
parent
9d61fc32c8
commit
9e884249b4
|
@ -115,15 +115,15 @@ def PrepareBuilding(env, root_directory, has_libcpu=False):
|
|||
#env['LINKCOMSTR'] = "Link $TARGET"
|
||||
|
||||
# board build script
|
||||
objs = SConscript('SConscript', variant_dir='build/bsp', duplicate=0)
|
||||
objs = SConscript('SConscript', variant_dir='build', duplicate=0)
|
||||
Repository(Rtt_Root)
|
||||
# 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
|
||||
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
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue