瀏覽代碼

Ensure .hex file output for ARM Teensys (#17014)

Ryan 3 年之前
父節點
當前提交
8c23f87c51
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      builddefs/bootloader.mk

+ 6 - 0
builddefs/bootloader.mk

@@ -97,12 +97,18 @@ ifeq ($(strip $(BOOTLOADER)), halfkay)
     OPT_DEFS += -DBOOTLOADER_HALFKAY
     OPT_DEFS += -DBOOTLOADER_HALFKAY
     BOOTLOADER_TYPE = halfkay
     BOOTLOADER_TYPE = halfkay
 
 
+    # Teensy 2.0
     ifeq ($(strip $(MCU)), atmega32u4)
     ifeq ($(strip $(MCU)), atmega32u4)
         BOOTLOADER_SIZE = 512
         BOOTLOADER_SIZE = 512
     endif
     endif
+    # Teensy 2.0++
     ifeq ($(strip $(MCU)), at90usb1286)
     ifeq ($(strip $(MCU)), at90usb1286)
         BOOTLOADER_SIZE = 1024
         BOOTLOADER_SIZE = 1024
     endif
     endif
+    # Teensy LC, 3.x
+    ifneq (,$(filter $(MCU_ORIG), MKL26Z64 MK20DX128 MK20DX256 MK66FX1M0))
+        FIRMWARE_FORMAT = hex
+    endif
 endif
 endif
 ifeq ($(strip $(BOOTLOADER)), caterina)
 ifeq ($(strip $(BOOTLOADER)), caterina)
     OPT_DEFS += -DBOOTLOADER_CATERINA
     OPT_DEFS += -DBOOTLOADER_CATERINA