From 82a94ea1bd4d930aebb15f7a3316836a0488421d Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 18 Jan 2023 22:36:58 +0000 Subject: Add f303 to tinyuf2 bootloader support (#19620) --- builddefs/mcu_selection.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'builddefs') diff --git a/builddefs/mcu_selection.mk b/builddefs/mcu_selection.mk index b566b1b5ac..1d05902fab 100644 --- a/builddefs/mcu_selection.mk +++ b/builddefs/mcu_selection.mk @@ -313,7 +313,11 @@ ifneq ($(findstring STM32F303, $(MCU)),) # Linker script to use # - it should exist either in /os/common/startup/ARMCMx/compilers/GCC/ld/ # or /ld/ - MCU_LDSCRIPT ?= STM32F303xC + ifeq ($(strip $(BOOTLOADER)), tinyuf2) + MCU_LDSCRIPT ?= STM32F303xC_tinyuf2 + else + MCU_LDSCRIPT ?= STM32F303xC + endif # Startup code to use # - it should exist in /os/common/startup/ARMCMx/compilers/GCC/mk/ -- cgit v1.2.3