aboutsummaryrefslogtreecommitdiff
path: root/bootloader.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader.mk')
-rw-r--r--bootloader.mk23
1 files changed, 19 insertions, 4 deletions
diff --git a/bootloader.mk b/bootloader.mk
index 55352f3d4..f30e38dd0 100644
--- a/bootloader.mk
+++ b/bootloader.mk
@@ -32,17 +32,32 @@
32ifeq ($(strip $(BOOTLOADER)), atmel-dfu) 32ifeq ($(strip $(BOOTLOADER)), atmel-dfu)
33 OPT_DEFS += -DBOOTLOADER_ATMEL_DFU 33 OPT_DEFS += -DBOOTLOADER_ATMEL_DFU
34 OPT_DEFS += -DBOOTLOADER_DFU 34 OPT_DEFS += -DBOOTLOADER_DFU
35 BOOTLOADER_SIZE = 4096 35 ifeq ($(strip $(MCU)), atmega32u4)
36 BOOTLOADER_SIZE = 4096
37 endif
38 ifeq ($(strip $(MCU)), at90usb1286)
39 BOOTLOADER_SIZE = 8192
40 endif
36endif 41endif
37ifeq ($(strip $(BOOTLOADER)), lufa-dfu) 42ifeq ($(strip $(BOOTLOADER)), lufa-dfu)
38 OPT_DEFS += -DBOOTLOADER_LUFA_DFU 43 OPT_DEFS += -DBOOTLOADER_LUFA_DFU
39 OPT_DEFS += -DBOOTLOADER_DFU 44 OPT_DEFS += -DBOOTLOADER_DFU
40 BOOTLOADER_SIZE = 4096 45 ifeq ($(strip $(MCU)), atmega32u4)
46 BOOTLOADER_SIZE = 4096
47 endif
48 ifeq ($(strip $(MCU)), at90usb1286)
49 BOOTLOADER_SIZE = 8192
50 endif
41endif 51endif
42ifeq ($(strip $(BOOTLOADER)), qmk-dfu) 52ifeq ($(strip $(BOOTLOADER)), qmk-dfu)
43 OPT_DEFS += -DBOOTLOADER_QMK_DFU 53 OPT_DEFS += -DBOOTLOADER_QMK_DFU
44 OPT_DEFS += -DBOOTLOADER_DFU 54 OPT_DEFS += -DBOOTLOADER_DFU
45 BOOTLOADER_SIZE = 4096 55 ifeq ($(strip $(MCU)), atmega32u4)
56 BOOTLOADER_SIZE = 4096
57 endif
58 ifeq ($(strip $(MCU)), at90usb1286)
59 BOOTLOADER_SIZE = 8192
60 endif
46endif 61endif
47ifeq ($(strip $(BOOTLOADER)), halfkay) 62ifeq ($(strip $(BOOTLOADER)), halfkay)
48 OPT_DEFS += -DBOOTLOADER_HALFKAY 63 OPT_DEFS += -DBOOTLOADER_HALFKAY
@@ -59,4 +74,4 @@ endif
59 74
60ifdef BOOTLOADER_SIZE 75ifdef BOOTLOADER_SIZE
61 OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) 76 OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
62endif \ No newline at end of file 77endif