mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 21:03:32 +08:00
[BSP] Fix the scons compiling issue in mb9bf568r if use armcc.
This commit is contained in:
parent
4373ef2e26
commit
6ea06b4bb3
@ -10,11 +10,11 @@ if os.getenv('RTT_CC'):
|
|||||||
CROSS_TOOL = os.getenv('RTT_CC')
|
CROSS_TOOL = os.getenv('RTT_CC')
|
||||||
|
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = r'D:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin'
|
EXEC_PATH = r'D:/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'D:/Keil'
|
EXEC_PATH = 'C:/Keil_MDK_471'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print '================ERROR============================'
|
||||||
print 'Not support iar yet!'
|
print 'Not support iar yet!'
|
||||||
@ -59,6 +59,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'
|
||||||
@ -81,4 +82,5 @@ elif PLATFORM == 'armcc':
|
|||||||
else:
|
else:
|
||||||
CFLAGS += ' -O2'
|
CFLAGS += ' -O2'
|
||||||
|
|
||||||
|
CXXFLAGS = CFLAGS
|
||||||
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user