diff options
| author | Ryan <fauxpark@gmail.com> | 2020-08-25 18:58:00 +1000 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2020-08-29 14:30:02 -0700 |
| commit | b89b2030af655132e2708cbdffd7fb1b8e1aaeb4 (patch) | |
| tree | f6d9d65da2b9f93ce0ad2f6a9e00293a1c6f4aa5 /bootloader.mk | |
| parent | fa6cf8572736f16d2fe076c21546d08f258e145f (diff) | |
Kiibohd bootloader, take 2 (#10129)
Diffstat (limited to 'bootloader.mk')
| -rw-r--r-- | bootloader.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bootloader.mk b/bootloader.mk index e516e9ff9f..d5f803f896 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,7 +90,19 @@ ifeq ($(strip $(BOOTLOADER)), lufa-ms) | |||
| 89 | BOOTLOADER_SIZE = 6144 | 90 | BOOTLOADER_SIZE = 6144 |
| 90 | FIRMWARE_FORMAT = bin | 91 | FIRMWARE_FORMAT = bin |
| 91 | endif | 92 | endif |
| 92 | |||
| 93 | ifdef BOOTLOADER_SIZE | 93 | ifdef BOOTLOADER_SIZE |
| 94 | OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) | 94 | OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) |
| 95 | endif | 95 | endif |
| 96 | |||
| 97 | ifeq ($(strip $(BOOTLOADER)), kiibohd) | ||
| 98 | OPT_DEFS += -DBOOTLOADER_KIIBOHD | ||
| 99 | ifeq ($(strip $(MCU_ORIG)), MK20DX128) | ||
| 100 | MCU_LDSCRIPT = MK20DX128BLDR4 | ||
| 101 | endif | ||
| 102 | ifeq ($(strip $(MCU_ORIG)), MK20DX256) | ||
| 103 | MCU_LDSCRIPT = MK20DX256BLDR8 | ||
| 104 | endif | ||
| 105 | |||
| 106 | DFU_ARGS = -d 1C11:B007 | ||
| 107 | DFU_SUFFIX_ARGS = -v 1C11 -p B007 | ||
| 108 | endif | ||
