diff options
| author | Bernard Xiong <[email protected]> | 2019-01-11 09:44:43 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-11 09:44:43 +0800 |
| commit | 40ca27d994184d2a65a7ec518bbf9b9a70700ea1 (patch) | |
| tree | a11db7ef7f223ffe2f95f7f47964e73f16821777 /libcpu/risc-v/e310/SConscript | |
| parent | 0720c3a3dcfafae2a40f44fa1bcfbf782513ba41 (diff) | |
| parent | 3a3c6c51f890fd4ee5fac446778c6beea24ebd26 (diff) | |
Merge pull request #2161 from RT-Thread/libcpu_SConscript
Libcpu sconscript
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') |
