1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Fix F1/F3 OPBL targets using wrong linker script.

This commit is contained in:
Dominic Clifton 2019-06-09 18:48:30 +02:00
parent ad00c6b66b
commit e81d11049f
2 changed files with 5 additions and 0 deletions

View file

@ -38,7 +38,10 @@ DEVICE_STDPERIPH_SRC := $(DEVICE_STDPERIPH_SRC) \
endif
ifeq ($(LD_SCRIPT),)
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f103_$(FLASH_SIZE)k.ld
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m3
ifeq ($(DEVICE_FLAGS),)

View file

@ -57,7 +57,9 @@ INCLUDE_DIRS := $(INCLUDE_DIRS) \
VPATH := $(VPATH):$(FATFS_DIR)
endif
ifeq ($(LD_SCRIPT),)
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f303_$(FLASH_SIZE)k.ld
endif
ARCH_FLAGS = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -Wdouble-promotion
DEVICE_FLAGS = -DSTM32F303xC -DSTM32F303