aboutsummaryrefslogtreecommitdiff
path: root/bootloader.mk
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-08-12 12:28:20 +1000
committerGitHub <noreply@github.com>2020-08-12 12:28:20 +1000
commite2d4cd1a41c667da186891e3dbaf535c6b0717df (patch)
tree8ae44fc6f6b80efb522ca523862ce511eab1161e /bootloader.mk
parent98e1e18f6bcae6977ef56747243158eb94c6bd69 (diff)
downloadqmk_firmware-e2d4cd1a41c667da186891e3dbaf535c6b0717df.tar.gz
qmk_firmware-e2d4cd1a41c667da186891e3dbaf535c6b0717df.zip
Add Kiibohd bootloader type to bootloader.mk (#9908)
Diffstat (limited to 'bootloader.mk')
-rw-r--r--bootloader.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootloader.mk b/bootloader.mk
index e516e9ff9..c22291e43 100644
--- a/bootloader.mk
+++ b/bootloader.mk
@@ -27,6 +27,7 @@
27# qmk-dfu QMK DFU (LUFA + blinkenlight) 27# qmk-dfu QMK DFU (LUFA + blinkenlight)
28# bootloadHID HIDBootFlash compatible (ATmega32A) 28# bootloadHID HIDBootFlash compatible (ATmega32A)
29# USBasp USBaspLoader (ATmega328P) 29# USBasp USBaspLoader (ATmega328P)
30# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
30# 31#
31# BOOTLOADER_SIZE can still be defined manually, but it's recommended 32# BOOTLOADER_SIZE can still be defined manually, but it's recommended
32# you add any possible configuration to this list 33# you add any possible configuration to this list
@@ -89,6 +90,18 @@ ifeq ($(strip $(BOOTLOADER)), lufa-ms)
89 BOOTLOADER_SIZE = 6144 90 BOOTLOADER_SIZE = 6144
90 FIRMWARE_FORMAT = bin 91 FIRMWARE_FORMAT = bin
91endif 92endif
93ifeq ($(strip $(BOOTLOADER)), kiibohd)
94 OPT_DEFS += -DBOOTLOADER_KIIBOHD
95 ifeq ($(strip $(MCU)), MK20DX128)
96 MCU_LDSCRIPT = MK20DX128BLDR4
97 endif
98 ifeq ($(strip $(MCU)), MK20DX256)
99 MCU_LDSCRIPT = MK20DX256BLDR8
100 endif
101
102 DFU_ARGS = -d 1C11:B007
103 DFU_SUFFIX_ARGS = -v 1C11 -p B007
104endif
92 105
93ifdef BOOTLOADER_SIZE 106ifdef BOOTLOADER_SIZE
94 OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) 107 OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))