Skip to content

Commit 559ef21

Browse files
fauxparkzvecr
authored andcommitted
Add LUFA mass storage BOOTLOADER "support" (qmk#7729)
1 parent 64263bb commit 559ef21

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

bootloader.mk

+7
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ ifeq ($(strip $(BOOTLOADER)), USBasp)
8282
OPT_DEFS += -DBOOTLOADER_USBASP
8383
BOOTLOADER_SIZE = 4096
8484
endif
85+
ifeq ($(strip $(BOOTLOADER)), lufa-ms)
86+
# DO NOT USE THIS BOOTLOADER IN NEW PROJECTS!
87+
# It is extremely prone to bricking, and is only included to support existing boards.
88+
OPT_DEFS += -DBOOTLOADER_MS
89+
BOOTLOADER_SIZE = 6144
90+
FIRMWARE_FORMAT = bin
91+
endif
8592

8693
ifdef BOOTLOADER_SIZE
8794
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))

keyboards/gray_studio/cod67/rules.mk

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ MCU = atmega32u4
99
# QMK DFU qmk-dfu
1010
# ATmega32A bootloadHID
1111
# ATmega328P USBasp
12-
BOOTLOADER = atmel-dfu # actually lufa-ms
13-
14-
# Mass storage bootloader on the COD67 uses bin files
15-
FIRMWARE_FORMAT = bin
12+
BOOTLOADER = lufa-ms
1613

1714
# Build Options
1815
# change yes to no to disable

keyboards/tada68/rules.mk

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ MCU = atmega32u4
99
# QMK DFU qmk-dfu
1010
# ATmega32A bootloadHID
1111
# ATmega328P USBasp
12-
BOOTLOADER = atmel-dfu # actually lufa-ms
13-
14-
# Mass storage bootloader on the tada68 uses bin files
15-
FIRMWARE_FORMAT = bin
12+
BOOTLOADER = lufa-ms
1613

1714
# Build Options
1815
# comment out to disable the options.

0 commit comments

Comments
 (0)