diff --git a/tools/building.py b/tools/building.py index 9bf390cba2..9f54a6ceac 100644 --- a/tools/building.py +++ b/tools/building.py @@ -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