diff options
| author | HubretXie <[email protected]> | 2019-01-12 15:00:18 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-12 15:00:18 +0800 |
| commit | 2f8f8f85e25b363662f08d5b37e9c6913535e979 (patch) | |
| tree | 98b1b608d401dcb48d45734dcafc74e290f82c05 /libcpu/risc-v/e310/SConscript | |
| parent | 0e333a3a1072ad134244fa2a3e84053b8656fbb7 (diff) | |
| parent | 83b67ec3e29099bce9bdb6fc6a50becc03072d29 (diff) | |
Merge pull request #3 from RT-Thread/master
sync
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') |
