summaryrefslogtreecommitdiff
path: root/libcpu/SConscript
diff options
context:
space:
mode:
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')