update lpc2148 SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1580 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
5a72253a71
commit
f02f51d2e3
|
@ -8,7 +8,7 @@ src_drv = []
|
||||||
|
|
||||||
|
|
||||||
src = src_bsp + src_drv
|
src = src_bsp + src_drv
|
||||||
CPPPATH = [RTT_ROOT + '/bsp/lpc2148']
|
CPPPATH = [ GetCurrentDir() ]
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# toolchains options
|
# toolchains options
|
||||||
ARCH='arm'
|
ARCH='arm'
|
||||||
CPU='lpc214x'
|
CPU='lpc214x'
|
||||||
CROSS_TOOL='keil'
|
CROSS_TOOL='gcc'
|
||||||
|
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
|
@ -16,6 +16,7 @@ if PLATFORM == 'gcc':
|
||||||
# toolchains
|
# toolchains
|
||||||
PREFIX = 'arm-none-eabi-'
|
PREFIX = 'arm-none-eabi-'
|
||||||
CC = PREFIX + 'gcc'
|
CC = PREFIX + 'gcc'
|
||||||
|
CXX = PREFIX + 'g++'
|
||||||
AS = PREFIX + 'gcc'
|
AS = PREFIX + 'gcc'
|
||||||
AR = PREFIX + 'ar'
|
AR = PREFIX + 'ar'
|
||||||
LINK = PREFIX + 'gcc'
|
LINK = PREFIX + 'gcc'
|
||||||
|
@ -27,7 +28,7 @@ if PLATFORM == 'gcc':
|
||||||
DEVICE = ' -mcpu=arm7tdmi-s -mthumb'
|
DEVICE = ' -mcpu=arm7tdmi-s -mthumb'
|
||||||
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
||||||
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
||||||
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc2148.map,-cref,-u,Reset_Handler -T lpc2148_rom.ld'
|
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc2148.map,-cref,-u,_start -T lpc2148_rom.ld'
|
||||||
|
|
||||||
CPATH = ''
|
CPATH = ''
|
||||||
LPATH = ''
|
LPATH = ''
|
||||||
|
@ -43,6 +44,7 @@ if PLATFORM == 'gcc':
|
||||||
elif PLATFORM == 'armcc':
|
elif PLATFORM == 'armcc':
|
||||||
# toolchains
|
# toolchains
|
||||||
CC = 'armcc'
|
CC = 'armcc'
|
||||||
|
CXX = 'armcc'
|
||||||
AS = 'armasm'
|
AS = 'armasm'
|
||||||
AR = 'armar'
|
AR = 'armar'
|
||||||
LINK = 'armlink'
|
LINK = 'armlink'
|
||||||
|
|
Loading…
Reference in New Issue