aboutsummaryrefslogtreecommitdiffstats
path: root/bootloader.mk
diff options
context:
space:
mode:
authorGravatar Ryan <fauxpark@gmail.com>2020-08-25 18:58:00 +1000
committerGravatar James Young <18669334+noroadsleft@users.noreply.github.com>2020-08-29 14:30:02 -0700
commitb89b2030af655132e2708cbdffd7fb1b8e1aaeb4 (patch)
treef6d9d65da2b9f93ce0ad2f6a9e00293a1c6f4aa5 /bootloader.mk
parentfa6cf8572736f16d2fe076c21546d08f258e145f (diff)
downloadqmk_firmware-b89b2030af655132e2708cbdffd7fb1b8e1aaeb4.tar.gz
Kiibohd bootloader, take 2 (#10129)
Diffstat (limited to 'bootloader.mk')
-rw-r--r--bootloader.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/bootloader.mk b/bootloader.mk
index e516e9ff9..d5f803f89 100644
--- a/bootloader.mk
+++ b/bootloader.mk
@@ -27,6 +27,7 @@
# qmk-dfu QMK DFU (LUFA + blinkenlight)
# bootloadHID HIDBootFlash compatible (ATmega32A)
# USBasp USBaspLoader (ATmega328P)
+# kiibohd Input:Club Kiibohd bootloader (only used on their boards)
#
# BOOTLOADER_SIZE can still be defined manually, but it's recommended
# you add any possible configuration to this list
@@ -89,7 +90,19 @@ ifeq ($(strip $(BOOTLOADER)), lufa-ms)
BOOTLOADER_SIZE = 6144
FIRMWARE_FORMAT = bin
endif
-
ifdef BOOTLOADER_SIZE
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
endif
+
+ifeq ($(strip $(BOOTLOADER)), kiibohd)
+ OPT_DEFS += -DBOOTLOADER_KIIBOHD
+ ifeq ($(strip $(MCU_ORIG)), MK20DX128)
+ MCU_LDSCRIPT = MK20DX128BLDR4
+ endif
+ ifeq ($(strip $(MCU_ORIG)), MK20DX256)
+ MCU_LDSCRIPT = MK20DX256BLDR8
+ endif
+
+ DFU_ARGS = -d 1C11:B007
+ DFU_SUFFIX_ARGS = -v 1C11 -p B007
+endif