aboutsummaryrefslogtreecommitdiff
path: root/bootloader.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader.mk')
-rw-r--r--bootloader.mk36
1 files changed, 19 insertions, 17 deletions
diff --git a/bootloader.mk b/bootloader.mk
index 9d73063d0..d61553394 100644
--- a/bootloader.mk
+++ b/bootloader.mk
@@ -19,12 +19,14 @@
19# 19#
20# Sets the bootloader defined in the keyboard's/keymap's rules.mk 20# Sets the bootloader defined in the keyboard's/keymap's rules.mk
21# Current options: 21# Current options:
22# atmel-dfu 22#
23# lufa-dfu 23# halfkay PJRC Teensy
24# qmk-dfu 24# caterina Pro Micro (Sparkfun/generic)
25# halfkay 25# atmel-dfu Atmel factory DFU
26# caterina 26# lufa-dfu LUFA DFU
27# bootloadHID 27# qmk-dfu QMK DFU (LUFA + blinkenlight)
28# bootloadHID HIDBootFlash compatible (ATmega32A)
29# USBasp USBaspLoader (ATmega328P)
28# 30#
29# BOOTLOADER_SIZE can still be defined manually, but it's recommended 31# BOOTLOADER_SIZE can still be defined manually, but it's recommended
30# you add any possible configuration to this list 32# you add any possible configuration to this list
@@ -32,40 +34,40 @@
32ifeq ($(strip $(BOOTLOADER)), atmel-dfu) 34ifeq ($(strip $(BOOTLOADER)), atmel-dfu)
33 OPT_DEFS += -DBOOTLOADER_ATMEL_DFU 35 OPT_DEFS += -DBOOTLOADER_ATMEL_DFU
34 OPT_DEFS += -DBOOTLOADER_DFU 36 OPT_DEFS += -DBOOTLOADER_DFU
35 ifeq ($(strip $(MCU)), atmega32u4) 37 ifneq (,$(filter $(MCU), at90usb646 atmega16u2 atmega16u4 atmega32u2 atmega32u4))
36 BOOTLOADER_SIZE = 4096 38 BOOTLOADER_SIZE = 4096
37 endif 39 endif
38 ifeq ($(strip $(MCU)), at90usb1286) 40 ifeq ($(strip $(MCU)), at90usb1286)
39 BOOTLOADER_SIZE = 8192 41 BOOTLOADER_SIZE = 8192
40 endif 42 endif
41endif 43endif
42ifeq ($(strip $(BOOTLOADER)), lufa-dfu) 44ifeq ($(strip $(BOOTLOADER)), lufa-dfu)
43 OPT_DEFS += -DBOOTLOADER_LUFA_DFU 45 OPT_DEFS += -DBOOTLOADER_LUFA_DFU
44 OPT_DEFS += -DBOOTLOADER_DFU 46 OPT_DEFS += -DBOOTLOADER_DFU
45 ifeq ($(strip $(MCU)), atmega32u4) 47 ifneq (,$(filter $(MCU), at90usb646 atmega16u2 atmega16u4 atmega32u2 atmega32u4))
46 BOOTLOADER_SIZE = 4096 48 BOOTLOADER_SIZE = 4096
47 endif 49 endif
48 ifeq ($(strip $(MCU)), at90usb1286) 50 ifeq ($(strip $(MCU)), at90usb1286)
49 BOOTLOADER_SIZE = 8192 51 BOOTLOADER_SIZE = 8192
50 endif 52 endif
51endif 53endif
52ifeq ($(strip $(BOOTLOADER)), qmk-dfu) 54ifeq ($(strip $(BOOTLOADER)), qmk-dfu)
53 OPT_DEFS += -DBOOTLOADER_QMK_DFU 55 OPT_DEFS += -DBOOTLOADER_QMK_DFU
54 OPT_DEFS += -DBOOTLOADER_DFU 56 OPT_DEFS += -DBOOTLOADER_DFU
55 ifeq ($(strip $(MCU)), atmega32u4) 57 ifneq (,$(filter $(MCU), at90usb646 atmega16u2 atmega16u4 atmega32u2 atmega32u4))
56 BOOTLOADER_SIZE = 4096 58 BOOTLOADER_SIZE = 4096
57 endif 59 endif
58 ifeq ($(strip $(MCU)), at90usb1286) 60 ifeq ($(strip $(MCU)), at90usb1286)
59 BOOTLOADER_SIZE = 8192 61 BOOTLOADER_SIZE = 8192
60 endif 62 endif
61endif 63endif
62ifeq ($(strip $(BOOTLOADER)), halfkay) 64ifeq ($(strip $(BOOTLOADER)), halfkay)
63 OPT_DEFS += -DBOOTLOADER_HALFKAY 65 OPT_DEFS += -DBOOTLOADER_HALFKAY
64 ifeq ($(strip $(MCU)), atmega32u4) 66 ifeq ($(strip $(MCU)), atmega32u4)
65 BOOTLOADER_SIZE = 512 67 BOOTLOADER_SIZE = 512
66 endif 68 endif
67 ifeq ($(strip $(MCU)), at90usb1286) 69 ifeq ($(strip $(MCU)), at90usb1286)
68 BOOTLOADER_SIZE = 1024 70 BOOTLOADER_SIZE = 1024
69 endif 71 endif
70endif 72endif
71ifeq ($(strip $(BOOTLOADER)), caterina) 73ifeq ($(strip $(BOOTLOADER)), caterina)