summaryrefslogtreecommitdiff
path: root/builddefs
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-01-18 22:36:58 +0000
committerGitHub <noreply@github.com>2023-01-18 22:36:58 +0000
commit82a94ea1bd4d930aebb15f7a3316836a0488421d (patch)
tree8e8d0f01d6b59aa7dbae1bf3635c8965d44efbdc /builddefs
parentdcd532830dae642770e628ddd8d77971876a2e31 (diff)
Add f303 to tinyuf2 bootloader support (#19620)
Diffstat (limited to 'builddefs')
-rw-r--r--builddefs/mcu_selection.mk6
1 files changed, 5 insertions, 1 deletions
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 <chibios>/os/common/startup/ARMCMx/compilers/GCC/ld/
# or <keyboard_dir>/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 <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/