Skip to content

Commit 33cb916

Browse files
authored
Merge pull request #1882 from uestczyh222/f4-build
[Bsp][stm32f4xx-hal]整理链接脚本
2 parents 7caaafa + 743c264 commit 33cb916

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bsp/stm32f4xx-HAL/rtconfig.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
import os
44

55
# toolchains options
6-
ARCH='arm'
7-
CPU='cortex-m4'
8-
CROSS_TOOL='gcc'
6+
ARCH = 'arm'
7+
CPU = 'cortex-m4'
8+
CROSS_TOOL = 'gcc'
99

1010
if os.getenv('RTT_CC'):
1111
CROSS_TOOL = os.getenv('RTT_CC')
1212

1313
#device options
1414

15-
1615
# cross_tool provides the cross compiler
1716
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
1817
if CROSS_TOOL == 'gcc':
@@ -44,7 +43,7 @@
4443
OBJCPY = PREFIX + 'objcopy'
4544

4645
DEVICE = ' -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard -ffunction-sections -fdata-sections'
47-
CFLAGS = DEVICE + ' -std=c99 -Dgcc' # -D' + PART_TYPE
46+
CFLAGS = DEVICE + ' -std=c99'
4847
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
4948
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld'
5049

0 commit comments

Comments
 (0)