aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2023-01-11 02:13:32 +0000
committerGitHub <[email protected]>2023-01-11 02:13:32 +0000
commite11235ee14f9cd3fc45b836eec99ed312cb137dd (patch)
tree023866a25f9fe4db482a8c5f5d1c9cab24882c46 /platforms/chibios
parent20474ae2321f0fb456731646b5b2e3090990b8df (diff)
downloadqmk_firmware-e11235ee14f9cd3fc45b836eec99ed312cb137dd.tar.gz
qmk_firmware-e11235ee14f9cd3fc45b836eec99ed312cb137dd.zip
De-duplicate platform detection (#19545)
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/bootloader.mk2
-rw-r--r--platforms/chibios/platform.mk3
2 files changed, 5 insertions, 0 deletions
diff --git a/platforms/chibios/bootloader.mk b/platforms/chibios/bootloader.mk
index 0568d35321..546faf2d27 100644
--- a/platforms/chibios/bootloader.mk
+++ b/platforms/chibios/bootloader.mk
@@ -36,6 +36,8 @@
# the respective file under `platforms/<PLATFORM>/bootloaders/custom.c` to see
# which functions may be overridden.
+FIRMWARE_FORMAT?=bin
+
ifeq ($(strip $(BOOTLOADER)), custom)
OPT_DEFS += -DBOOTLOADER_CUSTOM
BOOTLOADER_TYPE = custom
diff --git a/platforms/chibios/platform.mk b/platforms/chibios/platform.mk
index b2a8ec89e1..fd4c6bd2e5 100644
--- a/platforms/chibios/platform.mk
+++ b/platforms/chibios/platform.mk
@@ -442,6 +442,9 @@ LDFLAGS += $(SHARED_LDFLAGS) $(SHARED_LDSYMBOLS) $(TOOLCHAIN_LDFLAGS) $(TOOLCHA
# Tell QMK that we are hosting it on ChibiOS.
OPT_DEFS += -DPROTOCOL_CHIBIOS
+# And what flavor of MCU
+OPT_DEFS += -DMCU_$(MCU_FAMILY)
+
# ChibiOS supports synchronization primitives like a Mutex
OPT_DEFS += -DPLATFORM_SUPPORTS_SYNCHRONIZATION