From 559ef215638e82de75e3e9221baf4909990f4f53 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Mon, 30 Dec 2019 07:53:23 +1100 Subject: [PATCH] Add LUFA mass storage `BOOTLOADER` "support" (#7729) --- bootloader.mk | 7 +++++++ keyboards/gray_studio/cod67/rules.mk | 5 +---- keyboards/tada68/rules.mk | 5 +---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bootloader.mk b/bootloader.mk index d615533947bedf09d6ec50cfa604d0ad1b148012..e516e9ff9fd2a49f219c3ee5c7f5f649beffe8e3 100644 --- a/bootloader.mk +++ b/bootloader.mk @@ -82,6 +82,13 @@ ifeq ($(strip $(BOOTLOADER)), USBasp) OPT_DEFS += -DBOOTLOADER_USBASP BOOTLOADER_SIZE = 4096 endif +ifeq ($(strip $(BOOTLOADER)), lufa-ms) + # DO NOT USE THIS BOOTLOADER IN NEW PROJECTS! + # It is extremely prone to bricking, and is only included to support existing boards. + OPT_DEFS += -DBOOTLOADER_MS + BOOTLOADER_SIZE = 6144 + FIRMWARE_FORMAT = bin +endif ifdef BOOTLOADER_SIZE OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE)) diff --git a/keyboards/gray_studio/cod67/rules.mk b/keyboards/gray_studio/cod67/rules.mk index 0bed09539f5b4370acba42cd5a0bb19f007b6ed4..132db98f45e99952d735fd65b2dfe85f2623b753 100644 --- a/keyboards/gray_studio/cod67/rules.mk +++ b/keyboards/gray_studio/cod67/rules.mk @@ -9,10 +9,7 @@ MCU = atmega32u4 # QMK DFU qmk-dfu # ATmega32A bootloadHID # ATmega328P USBasp -BOOTLOADER = atmel-dfu # actually lufa-ms - -# Mass storage bootloader on the COD67 uses bin files -FIRMWARE_FORMAT = bin +BOOTLOADER = lufa-ms # Build Options # change yes to no to disable diff --git a/keyboards/tada68/rules.mk b/keyboards/tada68/rules.mk index ec3991c318d12eea4b22f162839c988df73d183e..38b05e042698296b69b01685d2eb5a1ee971a070 100755 --- a/keyboards/tada68/rules.mk +++ b/keyboards/tada68/rules.mk @@ -9,10 +9,7 @@ MCU = atmega32u4 # QMK DFU qmk-dfu # ATmega32A bootloadHID # ATmega328P USBasp -BOOTLOADER = atmel-dfu # actually lufa-ms - -# Mass storage bootloader on the tada68 uses bin files -FIRMWARE_FORMAT = bin +BOOTLOADER = lufa-ms # Build Options # comment out to disable the options.