summaryrefslogtreecommitdiff
path: root/bsp/lpc2148
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-07-01 14:18:31 +0000
committerwuyangyong <[email protected]>2011-07-01 14:18:31 +0000
commitf02f51d2e3fbcaa4376d73ba47458b1702e5da06 (patch)
treef8218204afadef74b27248efd8adfbff86ae52bb /bsp/lpc2148
parent5a72253a7195c8c12c335f1382ff6f95438b2244 (diff)
update lpc2148 SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1580 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lpc2148')
-rw-r--r--bsp/lpc2148/SConscript2
-rw-r--r--bsp/lpc2148/rtconfig.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/bsp/lpc2148/SConscript b/bsp/lpc2148/SConscript
index ab4ba59510..2a2a76c135 100644
--- a/bsp/lpc2148/SConscript
+++ b/bsp/lpc2148/SConscript
@@ -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)
diff --git a/bsp/lpc2148/rtconfig.py b/bsp/lpc2148/rtconfig.py
index 0c00e8584e..b3bcd9d582 100644
--- a/bsp/lpc2148/rtconfig.py
+++ b/bsp/lpc2148/rtconfig.py
@@ -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'