summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-05-06 22:18:03 +1000
committerGitHub <noreply@github.com>2022-05-06 13:18:03 +0100
commit8c23f87c5147f2a25784bc4501b40a5f7150b1f1 (patch)
tree8f95e191f482b71d89aad47d83f245bf00cfba97
parent49267b135be6f333cf072f1cdb7f822d012bc4b3 (diff)
downloadqmk_firmware-8c23f87c5147f2a25784bc4501b40a5f7150b1f1.tar.gz
qmk_firmware-8c23f87c5147f2a25784bc4501b40a5f7150b1f1.zip
Ensure .hex file output for ARM Teensys (#17014)
-rw-r--r--builddefs/bootloader.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/builddefs/bootloader.mk b/builddefs/bootloader.mk
index 226213297e..1a53bfa663 100644
--- a/builddefs/bootloader.mk
+++ b/builddefs/bootloader.mk
@@ -97,12 +97,18 @@ ifeq ($(strip $(BOOTLOADER)), halfkay)
OPT_DEFS += -DBOOTLOADER_HALFKAY
BOOTLOADER_TYPE = halfkay
+ # Teensy 2.0
ifeq ($(strip $(MCU)), atmega32u4)
BOOTLOADER_SIZE = 512
endif
+ # Teensy 2.0++
ifeq ($(strip $(MCU)), at90usb1286)
BOOTLOADER_SIZE = 1024
endif
+ # Teensy LC, 3.x
+ ifneq (,$(filter $(MCU_ORIG), MKL26Z64 MK20DX128 MK20DX256 MK66FX1M0))
+ FIRMWARE_FORMAT = hex
+ endif
endif
ifeq ($(strip $(BOOTLOADER)), caterina)
OPT_DEFS += -DBOOTLOADER_CATERINA