summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2011-02-21 06:58:28 +0000
committerbernard.xiong <[email protected]>2011-02-21 06:58:28 +0000
commit397efc12520a07d6fe113a656ca1a7d5e9ff15de (patch)
tree6146c0ecaeb6cef76cc7703dc89899569e35380b /bsp
parent4853d4f54a16ff5f643267bc5cf5b0a65b5858c5 (diff)
remove RT_USING_MINILIBC definitions in building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1285 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-rw-r--r--bsp/lm3s/SConstruct2
-rw-r--r--bsp/stm3210/rtconfig.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/bsp/lm3s/SConstruct b/bsp/lm3s/SConstruct
index 6a12d4efae..e8b767275d 100644
--- a/bsp/lm3s/SConstruct
+++ b/bsp/lm3s/SConstruct
@@ -21,7 +21,7 @@ Export('rtconfig')
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT)
-objs.append(SConscript('bsp/lm3s/Libraries/SConscript'))
+objs = objs + SConscript(('bsp/lm3s/Libraries/SConscript'), variant_dir='build/bsp/Libraries', duplicate=0)
env.Program(TARGET, objs)
diff --git a/bsp/stm3210/rtconfig.py b/bsp/stm3210/rtconfig.py
index 413a5492ad..83813d45ef 100644
--- a/bsp/stm3210/rtconfig.py
+++ b/bsp/stm3210/rtconfig.py
@@ -29,7 +29,7 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections'
- CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
+ CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
@@ -100,13 +100,12 @@ elif PLATFORM == 'iar':
AFLAGS = ''
AFLAGS += ' -s+'
-# AFLAGS += ' -M<>'
AFLAGS += ' -w+'
AFLAGS += ' -r'
AFLAGS += ' --cpu Cortex-M3'
AFLAGS += ' --fpu None'
AFLAGS += ' -I"' + IAR_PATH + '/arm/INC"'
-
+
LFLAGS = ' --config stm32f10x_flash.icf'
LFLAGS += ' --redirect _Printf=_PrintfTiny'
LFLAGS += ' --redirect _Scanf=_ScanfSmall'