diff options
| author | WBI\nxf44444 <[email protected]> | 2021-01-04 15:22:50 +0800 |
|---|---|---|
| committer | WBI\nxf44444 <[email protected]> | 2021-01-04 15:22:50 +0800 |
| commit | 77fd2c43423614fb8e9962a47918c789d4903c71 (patch) | |
| tree | a6bd9c284f2e3f51d972a9bef2e4e4b808f935dd /bsp/bluetrum/libcpu/cpu/SConscript | |
| parent | 361a2aa587a7541b635f62c3892d7b28a8ef228d (diff) | |
| parent | b8bd21f6bc5587f99c309de87edffccc195743bb (diff) | |
add license info header&remove the unnecessary code.
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') |
