Remove bootloader logic from mcu_selection.mk (#20150)

* Remove bootloader logic from mcu_selection.mk

* Move MCU/BOOTLOADER to info.json
This commit is contained in:
Joel Challis
2023-03-18 21:19:26 +00:00
committed by GitHub
parent 2c19e5d1c3
commit 50cb8a3bf5
13 changed files with 109 additions and 58 deletions

View File

@@ -1,18 +1,8 @@
SRC += ./lib/layer_status/layer_status.c
SRC += ./lib/logo.c
# MCU name
MCU = STM32F103
# Bootloader selection
# Cannot use `BOOTLOADER = stm32duino` due to the need to override
# `MCU_LDSCRIPT`, therefore all parameters need to be specified here manually.
OPT_DEFS += -DBOOTLOADER_STM32DUINO
MCU_LDSCRIPT = STM32F103xB_stm32duino_bootloader
BOARD = STM32_F103_STM32DUINO
BOOTLOADER_TYPE = stm32duino
DFU_ARGS = -d 1EAF:0003 -a 2 -R
DFU_SUFFIX_ARGS = -v 1EAF -p 0003
# Configure for 128K flash
MCU_LDSCRIPT = STM32F103xB
# Build Options
# change yes to no to disable