diff options
| author | Bernard Xiong <[email protected]> | 2018-10-11 20:52:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-10-11 20:52:20 +0800 |
| commit | 33cb916ff7aa684d06769497bb5f5914e7ff95a2 (patch) | |
| tree | d6e5e7ec5374529aea400963019b301b04094b4d | |
| parent | 7caaafa55f039e8c295f8df1cd2653fba4eed20f (diff) | |
| parent | 743c264285d0d9a76db5e37eee318c7d30d14337 (diff) | |
Merge pull request #1882 from uestczyh222/f4-build
[Bsp][stm32f4xx-hal]整理链接脚本
| -rw-r--r-- | bsp/stm32f4xx-HAL/rtconfig.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bsp/stm32f4xx-HAL/rtconfig.py b/bsp/stm32f4xx-HAL/rtconfig.py index d8de63dca7..39d157a9dc 100644 --- a/bsp/stm32f4xx-HAL/rtconfig.py +++ b/bsp/stm32f4xx-HAL/rtconfig.py @@ -3,16 +3,15 @@ import os # toolchains options -ARCH='arm' -CPU='cortex-m4' -CROSS_TOOL='gcc' +ARCH = 'arm' +CPU = 'cortex-m4' +CROSS_TOOL = 'gcc' if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') #device options - # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR if CROSS_TOOL == 'gcc': @@ -44,7 +43,7 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections' - CFLAGS = DEVICE + ' -std=c99 -Dgcc' # -D' + PART_TYPE + CFLAGS = DEVICE + ' -std=c99' AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb ' LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld' |
