[GDB] Fix compiling error when not enable GDB.

This commit is contained in:
Bernard Xiong 2014-10-27 22:27:54 +08:00
parent e5a1a9f553
commit 372926477b
1 changed files with 4 additions and 4 deletions

View File

@ -1,20 +1,20 @@
Import('rtconfig') Import('rtconfig')
from building import * from building import *
src = Glob('*.c')
comm = 'libcpu/' + rtconfig.ARCH comm = 'libcpu/' + rtconfig.ARCH
if (rtconfig.CPU == 'cortex-m4') or (rtconfig.CPU == 'cortex-m3'): if (rtconfig.CPU == 'cortex-m4') or (rtconfig.CPU == 'cortex-m3'):
comm = 'libcpu/cortexm' comm = 'libcpu/cortexm'
cwd = GetCurrentDir() cwd = GetCurrentDir()
if rtconfig.PLATFORM == 'armcc': 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': 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': 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] CPPPATH = [cwd, cwd + '/' + comm]