summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraozima <[email protected]>2018-12-01 00:55:29 +0800
committeraozima <[email protected]>2018-12-03 20:03:01 +0800
commit01dbc85f73e4f4c5483339045e240ac9779cfeab (patch)
tree0a5279db38e212783bbe69a031e06d7c32921b1c
parentd4cb16e5dbbfde017603282ebbeaffeb702e3177 (diff)
[bsp][frdm-k64f] update scons config: update MDK support.
-rw-r--r--bsp/frdm-k64f/rtconfig.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/bsp/frdm-k64f/rtconfig.py b/bsp/frdm-k64f/rtconfig.py
index 1f4d8d246e..e92c9b15e6 100644
--- a/bsp/frdm-k64f/rtconfig.py
+++ b/bsp/frdm-k64f/rtconfig.py
@@ -64,17 +64,16 @@ elif PLATFORM == 'armcc':
TARGET_EXT = 'axf'
DEVICE = ' --cpu Cortex-M4.fp '
- CFLAGS = DEVICE + ' --apcs=interwork'
+ CFLAGS = DEVICE + ' --c99 --apcs=interwork'
AFLAGS = DEVICE
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-k64f.map --scatter MK64F.sct'
- CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC'
- LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB'
+ LFLAGS += ' --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab)'
- EXEC_PATH += '/arm/bin40/'
+ EXEC_PATH += '/ARM/ARMCC/bin'
if BUILD == 'debug':
- CFLAGS += ' --c99 -g -O0'
+ CFLAGS += ' -g -O0'
AFLAGS += ' -g'
else:
CFLAGS += ' -O2'