From f700d01c6fe6ee4e4df6f601eda126a1c8e05cdb Mon Sep 17 00:00:00 2001 From: di0ib Date: Sat, 17 Sep 2016 08:36:48 -1000 Subject: [PATCH] make flashbin output binary file for LUFA mass storage bootloader --- keyboard/gnap/FLASH.bin | Bin 21836 -> 21836 bytes tmk_core/rules.mk | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/keyboard/gnap/FLASH.bin b/keyboard/gnap/FLASH.bin index c6b1d2d1a287764d1b19ddec223f6fc8dd2ac93b..04c58d69f835e0bcd4af1c26f7b0adf885ec50d1 100644 GIT binary patch delta 30 lcmX@Jit)@U#trh^{00_Q#->)rMhd~H1qz1doAtQmya1S%2&Di3 delta 30 lcmX@Jit)@U#trh^{6+>=M#feqCJMo+1qy~{oAtQmya1RN2%Z1{ diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 66b4cbd8..b6312dd5 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -506,7 +506,10 @@ extcoff: $(TARGET).elf @echo $(MSG_EXTENDED_COFF) $(TARGET).cof $(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof - +# Convert hex to bin. +flashbin: $(TARGET).hex + $(OBJCOPY) -Iihex -Obinary $(TARGET).hex $(TARGET).bin + $(COPY) $(TARGET).bin FLASH.bin; # Create final output files (.hex, .eep) from ELF output file. %.hex: %.elf @@ -603,6 +606,7 @@ clean_list : $(REMOVE) $(TARGET).map $(REMOVE) $(TARGET).sym $(REMOVE) $(TARGET).lss + $(REMOVE) $(TARGET).bin $(REMOVE) $(OBJ) $(REMOVE) $(LST) $(REMOVE) $(OBJ:.o=.s)