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
|
||||
CPPPATH = [RTT_ROOT + '/bsp/lpc2148']
|
||||
CPPPATH = [ GetCurrentDir() ]
|
||||
CPPDEFINES = []
|
||||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# toolchains options
|
||||
ARCH='arm'
|
||||
CPU='lpc214x'
|
||||
CROSS_TOOL='keil'
|
||||
CROSS_TOOL='gcc'
|
||||
|
||||
if CROSS_TOOL == 'gcc':
|
||||
PLATFORM = 'gcc'
|
||||
|
@ -16,6 +16,7 @@ if PLATFORM == 'gcc':
|
|||
# toolchains
|
||||
PREFIX = 'arm-none-eabi-'
|
||||
CC = PREFIX + 'gcc'
|
||||
CXX = PREFIX + 'g++'
|
||||
AS = PREFIX + 'gcc'
|
||||
AR = PREFIX + 'ar'
|
||||
LINK = PREFIX + 'gcc'
|
||||
|
@ -27,7 +28,7 @@ if PLATFORM == 'gcc':
|
|||
DEVICE = ' -mcpu=arm7tdmi-s -mthumb'
|
||||
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
||||
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 = ''
|
||||
LPATH = ''
|
||||
|
@ -43,6 +44,7 @@ if PLATFORM == 'gcc':
|
|||
elif PLATFORM == 'armcc':
|
||||
# toolchains
|
||||
CC = 'armcc'
|
||||
CXX = 'armcc'
|
||||
AS = 'armasm'
|
||||
AR = 'armar'
|
||||
LINK = 'armlink'
|
||||
|
|
Loading…
Reference in New Issue