diff options
| author | 陈豪 <[email protected]> | 2014-08-12 18:18:23 +0800 |
|---|---|---|
| committer | 陈豪 <[email protected]> | 2014-08-12 18:18:23 +0800 |
| commit | 697e21660662ff5c7ce72864e19e75b907e1e498 (patch) | |
| tree | 7d2f65653dcf00c87fba9e01f38315d0919b6f32 /components/gdb/SConscript | |
| parent | 5fc32bf12ef4356ecbd46cfa21079cddb522b5c7 (diff) | |
[GDB stub]first version
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..3ee73a0685 --- /dev/null +++ b/components/gdb/SConscript @@ -0,0 +1,23 @@ +Import('rtconfig') +from building import * + +comm = 'libcpu/' + rtconfig.ARCH +if (rtconfig.CPU == 'cortex-m4') or (rtconfig.CPU == 'cortex-m3'): + comm = 'libcpu/cortexm' + +cwd = GetCurrentDir() +if rtconfig.PLATFORM == 'armcc': + src = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_rvds.S') + +if rtconfig.PLATFORM == 'gcc': + src = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_gcc.S') + +if rtconfig.PLATFORM == 'iar': + src = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_iar.S') + + +CPPPATH = [cwd, cwd + '/' + comm] + +group = DefineGroup('gdb', src, depend = ['RT_USING_GDB'], CPPPATH = CPPPATH) + +Return('group') |
