summaryrefslogtreecommitdiff
path: root/libcpu/SConscript
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-10-21 23:50:25 +0000
committerbernard.xiong <[email protected]>2009-10-21 23:50:25 +0000
commit9ba06214639ce55f11bcce682f14c51b3275f510 (patch)
tree8ee5d9430258ce9eb1e48287651b6b4877dd20a1 /libcpu/SConscript
parenta7c1e7c3a495d6058c586f340787b396f919976b (diff)
update on scons script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@118 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/SConscript')
-rw-r--r--libcpu/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript
index 4fea918603..a9b1eca794 100644
--- a/libcpu/SConscript
+++ b/libcpu/SConscript
@@ -1,5 +1,6 @@
Import('env')
Import('rtconfig')
+Import('RTT_ROOT')
comm = rtconfig.ARCH + '/common'
path = rtconfig.ARCH + '/' + rtconfig.CPU
@@ -14,5 +15,7 @@ if rtconfig.CC == 'gcc':
if rtconfig.CC == 'iar':
src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c')
+env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU])
obj = env.Object(src_local)
+
Return('obj')