summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authordzzxzz <[email protected]>2011-10-07 03:00:12 +0000
committerdzzxzz <[email protected]>2011-10-07 03:00:12 +0000
commite97c87d6a0947ff5e235d3e2c36a3d00279a78ae (patch)
tree814f91bac3fa8b27d5d5f1a8a2910150bcb30954 /bsp
parent130da0f1d9904c1a47df179d22ae56c7f47bd816 (diff)
fixed a compile error while using scons+iar for m16c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1740 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
-rw-r--r--bsp/m16c62p/SConstruct9
1 files changed, 6 insertions, 3 deletions
diff --git a/bsp/m16c62p/SConstruct b/bsp/m16c62p/SConstruct
index f4c22f1062..7d8c0b0cd6 100644
--- a/bsp/m16c62p/SConstruct
+++ b/bsp/m16c62p/SConstruct
@@ -12,11 +12,14 @@ env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc',
- LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS,
- CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'],
- LINKCOM = ['$LINK $SOURCES $LINKFLAGS -f lnkm30627fhp.xcl -l rtt2m16c.map -o rtt2m16c.d34 -Omotorola-s28=$TARGET'])
+ LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
+if rtconfig.PLATFORM == 'iar':
+ env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
+ env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -f lnkm30627fhp.xcl -l rtt2m16c.map -o rtt2m16c.d34 -Omotorola-s28=$TARGET'])
+ env.Replace(ARFLAGS = '')
+
Export('RTT_ROOT')
Export('rtconfig')