diff options
| author | greedyhao <[email protected]> | 2020-12-10 11:02:26 +0800 |
|---|---|---|
| committer | greedyhao <[email protected]> | 2020-12-10 11:02:26 +0800 |
| commit | 40ef8229792dedc7c224cddf01472ea86ecd7f9c (patch) | |
| tree | 4048333666ce7bd9c9b97332b49ea5d6d1bdd675 /bsp/bluetrum/libcpu/SConscript | |
| parent | 86756c0d4cc73f2ec863c0db16c3b4265fcc3ad6 (diff) | |
[bsp][bluetrum] add a new board support
Diffstat (limited to 'bsp/bluetrum/libcpu/SConscript')
| -rw-r--r-- | bsp/bluetrum/libcpu/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bsp/bluetrum/libcpu/SConscript b/bsp/bluetrum/libcpu/SConscript new file mode 100644 index 0000000000..9ff30a796b --- /dev/null +++ b/bsp/bluetrum/libcpu/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') |
