From 697e21660662ff5c7ce72864e19e75b907e1e498 Mon Sep 17 00:00:00 2001 From: 陈豪 <547884940@qq.com> Date: Tue, 12 Aug 2014 18:18:23 +0800 Subject: [GDB stub]first version --- components/gdb/SConscript | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 components/gdb/SConscript (limited to 'components/gdb/SConscript') 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') -- cgit v1.3.1 From 372926477b31674db1475fd3e88871fb2af9289f Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 27 Oct 2014 22:27:54 +0800 Subject: [GDB] Fix compiling error when not enable GDB. --- components/gdb/SConscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'components/gdb/SConscript') 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] -- cgit v1.3.1