diff options
| author | Bernard Xiong <[email protected]> | 2014-10-27 22:27:54 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2014-10-27 22:27:54 +0800 |
| commit | 372926477b31674db1475fd3e88871fb2af9289f (patch) | |
| tree | 3d0c9bd229ebdcee7a8963ac1cc2b9a4e744a5db /components/gdb/SConscript | |
| parent | e5a1a9f553870af21626a534384448cba8f6e9d3 (diff) | |
[GDB] Fix compiling error when not enable GDB.
Diffstat (limited to 'components/gdb/SConscript')
| -rw-r--r-- | components/gdb/SConscript | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/gdb/SConscript b/components/gdb/SConscript index 3ee73a0685..8893d238bc 100644 --- a/components/gdb/SConscript +++ b/components/gdb/SConscript @@ -1,20 +1,20 @@ 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 = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_rvds.S') + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_rvds.S') if rtconfig.PLATFORM == 'gcc': - src = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_gcc.S') + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_gcc.S') if rtconfig.PLATFORM == 'iar': - src = Glob('*.c') + Glob(comm + '/*.c') + Glob(comm + '/*_iar.S') - + src = src + Glob(comm + '/*.c') + Glob(comm + '/*_iar.S') CPPPATH = [cwd, cwd + '/' + comm] |
