fixed gcc assembly option and objcopy option in rtconfig.py for imxrt1052-nxp-evk

This commit is contained in:
WangQiang 2020-08-06 18:03:15 +08:00
parent 24ebc3dc5b
commit 49b86c6a21
1 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,9 @@ if PLATFORM == 'gcc':
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
AFLAGS += ' -D__STARTUP_INITIALIZE_NONCACHEDATA'
AFLAGS += ' -D__STARTUP_CLEAR_BSS'
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -gdwarf-2' CFLAGS += ' -gdwarf-2'
AFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2'
@ -60,7 +63,7 @@ if PLATFORM == 'gcc':
else: else:
CFLAGS += ' -O2 -Os' CFLAGS += ' -O2 -Os'
POST_ACTION = OBJCPY + ' -O binary --remove-section=.boot_data --remove-section=.image_vertor_table --remove-section=.ncache $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
# module setting # module setting
CXXFLAGS = ' -Woverloaded-virtual -fno-exceptions -fno-rtti ' CXXFLAGS = ' -Woverloaded-virtual -fno-exceptions -fno-rtti '