diff options
| author | tanek liang <[email protected]> | 2017-07-28 21:34:18 +0800 |
|---|---|---|
| committer | tanek liang <[email protected]> | 2017-07-29 14:07:30 +0800 |
| commit | db1cd8830afdeee52cb0a8b77589da13db21abc6 (patch) | |
| tree | 083bd875bcd5407395c523251bc293f5b4eb2aeb /bsp/lpc824/Libraries/SConscript | |
| parent | d4de2c53e3ce8d328bcbc8823a323b2c26e6ccd5 (diff) | |
[bsp] add new bsp for lpc824
Diffstat (limited to 'bsp/lpc824/Libraries/SConscript')
| -rw-r--r-- | bsp/lpc824/Libraries/SConscript | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/bsp/lpc824/Libraries/SConscript b/bsp/lpc824/Libraries/SConscript new file mode 100644 index 0000000000..3ed5fd3b0c --- /dev/null +++ b/bsp/lpc824/Libraries/SConscript @@ -0,0 +1,34 @@ +# RT-Thread building script for component + +Import('rtconfig') +Import('RTT_ROOT') +from building import * + +cwd = GetCurrentDir() + +src = Glob('peri_driver/*/*.c') +src += Glob('common/board/*.c') +src += Glob('common/chip/*.c') + +# add for startup script +if rtconfig.CROSS_TOOL == 'gcc': + print "not gcc startup file" + exit(0) +elif rtconfig.CROSS_TOOL == 'keil': + src += [cwd + '/common/startup/keil_startup_lpc82x.s'] +elif rtconfig.CROSS_TOOL == 'iar': + src += [cwd + '/common/startup/iar_startup_lpc82x.s'] + +CPPPATH = [ cwd + '/peri_driver', cwd + '/common/board', + cwd + '/common/chip', cwd + '/common/CMSIS'] + +if GetDepend(['RT_USING_BSP_CMSIS']): + CPPPATH += [cwd + '/common/CMSIS/'] +elif GetDepend(['RT_USING_RTT_CMSIS']): + CPPPATH += [RTT_ROOT + '/components/CMSIS/Include'] + +CPPDEFINES = ['CORE_M0PLUS'] + +group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) + +Return('group') |
