diff options
| author | Arda <[email protected]> | 2014-11-24 11:57:31 +0800 |
|---|---|---|
| committer | Arda <[email protected]> | 2014-11-24 11:57:31 +0800 |
| commit | 143d3b82244b977735649e7d7c201d2affe67460 (patch) | |
| tree | 61503d3a150cef8d8184c858efc139b146b50cf6 /components/gdb/SConscript | |
| parent | bc2a890ab08d163ccea323f7e719c4fdf53050cd (diff) | |
| parent | 9ecd18411fc1344e3d080d844b60c7070c3fb4d8 (diff) | |
Merge pull request #2 from RT-Thread/master
update from official source
Diffstat (limited to 'components/gdb/SConscript')
| -rw-r--r-- | components/gdb/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/gdb/SConscript b/components/gdb/SConscript new file mode 100644 index 0000000000..8893d238bc --- /dev/null +++ b/components/gdb/SConscript @@ -0,0 +1,23 @@ +Import('rtconfig') +from building import * + +src = Glob('*.c') +comm = 'libcpu/' + rtconfig.ARCH +if (rtconfig.CPU == 'cortex-m4') or (rtconfig.CPU == 'cortex-m3'): + comm = 'libcpu/cortexm' + +cwd = GetCurrentDir() +if rtconfig.PLATFORM == 'armcc': + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_rvds.S') + +if rtconfig.PLATFORM == 'gcc': + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_gcc.S') + +if rtconfig.PLATFORM == 'iar': + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_iar.S') + +CPPPATH = [cwd, cwd + '/' + comm] + +group = DefineGroup('gdb', src, depend = ['RT_USING_GDB'], CPPPATH = CPPPATH) + +Return('group') |
