summaryrefslogtreecommitdiff
path: root/libcpu/risc-v/e310/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu/risc-v/e310/SConscript')
-rw-r--r--libcpu/risc-v/e310/SConscript13
1 files changed, 7 insertions, 6 deletions
diff --git a/libcpu/risc-v/e310/SConscript b/libcpu/risc-v/e310/SConscript
index 4e4bc0c3d9..b0ae20ba02 100644
--- a/libcpu/risc-v/e310/SConscript
+++ b/libcpu/risc-v/e310/SConscript
@@ -1,13 +1,14 @@
-Import('rtconfig')
+# RT-Thread building script for component
+
from building import *
+Import('rtconfig')
+
cwd = GetCurrentDir()
-src = Glob('*.c')
+src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S')
CPPPATH = [cwd]
+ASFLAGS = ''
-if rtconfig.PLATFORM == 'gcc':
- src += Glob('*_gcc.S')
-
-group = DefineGroup('libcpu', src, depend = [''], CPPPATH = CPPPATH)
+group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS)
Return('group')