X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bootloader.mk;h=9d73063d0fc504c437e5d3d6f43f7f8d06eabc15;hb=29e9caa82bdfe898dd7fca82fcecf0cae2374859;hp=f30e38dd05b5d924f078cceb2b42b4a8165ce6e8;hpb=14b7602a65dedaf51db1c9288144765d43a83a15;p=qmk_firmware.git diff --git a/bootloader.mk b/bootloader.mk index f30e38dd0..9d73063d0 100644 --- a/bootloader.mk +++ b/bootloader.mk @@ -61,7 +61,12 @@ ifeq ($(strip $(BOOTLOADER)), qmk-dfu) endif ifeq ($(strip $(BOOTLOADER)), halfkay) OPT_DEFS += -DBOOTLOADER_HALFKAY - BOOTLOADER_SIZE = 512 + ifeq ($(strip $(MCU)), atmega32u4) + BOOTLOADER_SIZE = 512 + endif + ifeq ($(strip $(MCU)), at90usb1286) + BOOTLOADER_SIZE = 1024 + endif endif ifeq ($(strip $(BOOTLOADER)), caterina) OPT_DEFS += -DBOOTLOADER_CATERINA @@ -71,6 +76,10 @@ ifeq ($(strip $(BOOTLOADER)), bootloadHID) OPT_DEFS += -DBOOTLOADER_BOOTLOADHID BOOTLOADER_SIZE = 4096 endif +ifeq ($(strip $(BOOTLOADER)), USBasp) + OPT_DEFS += -DBOOTLOADER_USBASP + BOOTLOADER_SIZE = 4096 +endif ifdef BOOTLOADER_SIZE OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))