aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2021-06-16 20:15:45 +0200
committerGitHub <noreply@github.com>2021-06-17 04:15:45 +1000
commit9956ff4e031b33c5e1fe1ff6ee44885f1080d966 (patch)
tree1bfccedbcc8cad5a756286fbbd6362cb928614c0
parentd59f8d1c022234140a94c643f4b78bf5487d39f7 (diff)
downloadqmk_firmware-9956ff4e031b33c5e1fe1ff6ee44885f1080d966.tar.gz
qmk_firmware-9956ff4e031b33c5e1fe1ff6ee44885f1080d966.zip
core: wire up flash make target for Teensy 4.x (#13077)
related to https://github.com/kinx-project/kint/issues/5
-rw-r--r--platforms/chibios/IC_TEENSY_4_1/board/board.mk1
-rw-r--r--platforms/chibios/IC_TEENSY_4_1/rules.mk1
-rw-r--r--tmk_core/chibios.mk6
3 files changed, 7 insertions, 1 deletions
diff --git a/platforms/chibios/IC_TEENSY_4_1/board/board.mk b/platforms/chibios/IC_TEENSY_4_1/board/board.mk
new file mode 100644
index 000000000..bc242ac3c
--- /dev/null
+++ b/platforms/chibios/IC_TEENSY_4_1/board/board.mk
@@ -0,0 +1 @@
include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_4_1/board.mk
diff --git a/platforms/chibios/IC_TEENSY_4_1/rules.mk b/platforms/chibios/IC_TEENSY_4_1/rules.mk
new file mode 100644
index 000000000..0c62d209c
--- /dev/null
+++ b/platforms/chibios/IC_TEENSY_4_1/rules.mk
@@ -0,0 +1 @@
TEENSY_LOADER_CLI_MCU = imxrt1062
diff --git a/tmk_core/chibios.mk b/tmk_core/chibios.mk
index 97299b7d3..7eda36046 100644
--- a/tmk_core/chibios.mk
+++ b/tmk_core/chibios.mk
@@ -390,8 +390,10 @@ ifndef TEENSY_LOADER_CLI
390 endif 390 endif
391endif 391endif
392 392
393TEENSY_LOADER_CLI_MCU ?= $(MCU_LDSCRIPT)
394
393define EXEC_TEENSY 395define EXEC_TEENSY
394 $(TEENSY_LOADER_CLI) -mmcu=$(MCU_LDSCRIPT) -w -v $(BUILD_DIR)/$(TARGET).hex 396 $(TEENSY_LOADER_CLI) -mmcu=$(TEENSY_LOADER_CLI_MCU) -w -v $(BUILD_DIR)/$(TARGET).hex
395endef 397endef
396 398
397teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter 399teensy: $(BUILD_DIR)/$(TARGET).hex cpfirmware sizeafter
@@ -408,6 +410,8 @@ else ifeq ($(strip $(BOOTLOADER)),kiibohd)
408 $(call EXEC_DFU_UTIL) 410 $(call EXEC_DFU_UTIL)
409else ifeq ($(strip $(MCU_FAMILY)),KINETIS) 411else ifeq ($(strip $(MCU_FAMILY)),KINETIS)
410 $(call EXEC_TEENSY) 412 $(call EXEC_TEENSY)
413else ifeq ($(strip $(MCU_FAMILY)),MIMXRT1062)
414 $(call EXEC_TEENSY)
411else ifeq ($(strip $(MCU_FAMILY)),STM32) 415else ifeq ($(strip $(MCU_FAMILY)),STM32)
412 $(call EXEC_DFU_UTIL) 416 $(call EXEC_DFU_UTIL)
413else 417else