diff options
| author | guozhanxin <[email protected]> | 2021-12-21 18:44:16 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-12-22 13:04:02 +0800 |
| commit | 67a39f62e55f4a3ca1ebf07cbe45dd9d98a668a8 (patch) | |
| tree | 402a243c869089a67a9d72f765da70973fe94417 /bsp/stm32 | |
| parent | a5f6fdc780d55f2bf2a1624815879e15c51082b5 (diff) | |
Improve armclang support.|完善 armclang 支持
Diffstat (limited to 'bsp/stm32')
| -rw-r--r-- | bsp/stm32/stm32l552-st-nucleo/rtconfig.py | 32 | ||||
| -rw-r--r-- | bsp/stm32/stm32u575-st-nucleo/rtconfig.py | 32 |
2 files changed, 0 insertions, 64 deletions
diff --git a/bsp/stm32/stm32l552-st-nucleo/rtconfig.py b/bsp/stm32/stm32l552-st-nucleo/rtconfig.py index 4b4a59c98f..d648bba7b8 100644 --- a/bsp/stm32/stm32l552-st-nucleo/rtconfig.py +++ b/bsp/stm32/stm32l552-st-nucleo/rtconfig.py @@ -61,38 +61,6 @@ if PLATFORM == 'gcc': POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - CXX = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --cpu Cortex-M33.fp ' - CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' - AFLAGS = DEVICE + ' --apcs=interwork ' - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict --scatter "board\linker_scripts\link.sct"' - CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' - LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' - - CFLAGS += ' -D__MICROLIB ' - AFLAGS += ' --pd "__MICROLIB SETA 1" ' - LFLAGS += ' --library_type=microlib ' - EXEC_PATH += '/ARM/ARMCC/bin/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - CXXFLAGS = CFLAGS - CFLAGS += ' -std=c99' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - elif PLATFORM == 'armclang': # toolchains CC = 'armclang' diff --git a/bsp/stm32/stm32u575-st-nucleo/rtconfig.py b/bsp/stm32/stm32u575-st-nucleo/rtconfig.py index e402f5a8bc..b14888b024 100644 --- a/bsp/stm32/stm32u575-st-nucleo/rtconfig.py +++ b/bsp/stm32/stm32u575-st-nucleo/rtconfig.py @@ -61,38 +61,6 @@ if PLATFORM == 'gcc': POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' -elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - CXX = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --cpu Cortex-M33.fp ' - CFLAGS = '-c ' + DEVICE + ' --apcs=interwork --c99' - AFLAGS = DEVICE + ' --apcs=interwork ' - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rt-thread.map --strict --scatter "board\linker_scripts\link.sct"' - CFLAGS += ' -I' + EXEC_PATH + '/ARM/ARMCC/include' - LFLAGS += ' --libpath=' + EXEC_PATH + '/ARM/ARMCC/lib' - - CFLAGS += ' -D__MICROLIB ' - AFLAGS += ' --pd "__MICROLIB SETA 1" ' - LFLAGS += ' --library_type=microlib ' - EXEC_PATH += '/ARM/ARMCC/bin/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - CXXFLAGS = CFLAGS - CFLAGS += ' -std=c99' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - elif PLATFORM == 'armclang': # toolchains CC = 'armclang' |
