diff options
| author | Meco Man <[email protected]> | 2020-12-16 14:33:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-16 14:33:31 +0800 |
| commit | 504112694d225902ef4cdc18bf4c13ccc700e6f8 (patch) | |
| tree | 28bafcff9a2544711c9b07e39fd3fd1675171394 /bsp/bluetrum/libcpu/cpu/SConscript | |
| parent | 5f6d3298eeadb59a2d946c18e95f0d59a6558063 (diff) | |
| parent | 95130a9000ed2611c98b5ac1bf81e80b8c466d70 (diff) | |
Merge pull request #5 from RT-Thread/master
pr
Diffstat (limited to 'bsp/bluetrum/libcpu/cpu/SConscript')
| -rw-r--r-- | bsp/bluetrum/libcpu/cpu/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bsp/bluetrum/libcpu/cpu/SConscript b/bsp/bluetrum/libcpu/cpu/SConscript new file mode 100644 index 0000000000..9ff30a796b --- /dev/null +++ b/bsp/bluetrum/libcpu/cpu/SConscript @@ -0,0 +1,23 @@ +# RT-Thread building script for component + +from building import * + +Import('rtconfig') + +cwd = GetCurrentDir() +src = Glob('*.c') + Glob('*.cpp') +CPPPATH = [cwd] + +if rtconfig.PLATFORM == 'armcc': + src += Glob('*_rvds.S') + +if rtconfig.PLATFORM == 'gcc': + src += Glob('*_init.S') + src += Glob('*_gcc.S') + +if rtconfig.PLATFORM == 'iar': + src += Glob('*_iar.S') + +group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH) + +Return('group') |
