mirror of https://github.com/RT-Thread/rt-thread
[GDB] Fix compiling error when not enable GDB.
This commit is contained in:
parent
e5a1a9f553
commit
372926477b
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue