diff options
| author | Bernard Xiong <[email protected]> | 2019-01-07 06:09:45 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2019-01-07 06:09:45 +0800 |
| commit | bde47018b8327fb8106c68e84a719a97243a1653 (patch) | |
| tree | a3289aeed38968e91819e2a1571779559961edb0 /libcpu/risc-v/e310/SConscript | |
| parent | 1e78259545129e3cf3263edb6f6c490e2aa23003 (diff) | |
[libcpu] Add SConscript in libcpu.
Diffstat (limited to 'libcpu/risc-v/e310/SConscript')
| -rw-r--r-- | libcpu/risc-v/e310/SConscript | 13 |
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') |
