summaryrefslogtreecommitdiff
path: root/libcpu/SConscript
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-10-14 09:49:02 +0000
committerbernard.xiong <[email protected]>2009-10-14 09:49:02 +0000
commit0be4d1d5dd2890b003b5f1d3abf4ac67fd980e93 (patch)
tree9eeea567841b59d3f3a36cc25bc8956ddcf94001 /libcpu/SConscript
parent3c246ff153f36531bb1a020cb455b9a7cdf51db5 (diff)
add STM32 gcc version. apply scons build system.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@99 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/SConscript')
-rw-r--r--libcpu/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcpu/SConscript b/libcpu/SConscript
new file mode 100644
index 0000000000..1ea8ff784c
--- /dev/null
+++ b/libcpu/SConscript
@@ -0,0 +1,15 @@
+Import('env')
+Import('rtconfig')
+
+comm = rtconfig.ARCH + '/common'
+path = rtconfig.ARCH + '/' + rtconfig.CPU
+
+# The set of source files associated with this SConscript file.
+if rtconfig.CC == 'armcc':
+ src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c')
+
+if rtconfig.CC == 'gcc':
+ src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c')
+
+obj = env.Object(src_local)
+Return('obj')