summaryrefslogtreecommitdiff
path: root/components/ktime/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'components/ktime/SConscript')
-rw-r--r--components/ktime/SConscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/ktime/SConscript b/components/ktime/SConscript
new file mode 100644
index 0000000000..0ec9655697
--- /dev/null
+++ b/components/ktime/SConscript
@@ -0,0 +1,19 @@
+import os
+from building import *
+
+Import('rtconfig')
+
+cwd = GetCurrentDir()
+
+src = Glob('src/*.c')
+list = os.listdir(cwd + "/src")
+if rtconfig.ARCH in list:
+ if os.path.exists(cwd + "/src/" + rtconfig.ARCH + "/" + rtconfig.CPU):
+ src += Glob("src/" + rtconfig.ARCH + "/" + rtconfig.CPU + "/*.c")
+ else:
+ src += Glob("src/" + rtconfig.ARCH + "/*.c")
+CPPPATH = [cwd, cwd + "/inc"]
+
+group = DefineGroup('ktime', src, depend=[''], CPPPATH=CPPPATH)
+
+Return('group')