]> git.zerfleddert.de Git - fnordlicht-mini/blobdiff - firmware/fnordlicht-firmware/Makefile
Fix fuses
[fnordlicht-mini] / firmware / fnordlicht-firmware / Makefile
index 345a4c1ef2a43f0e3be6459f409b61c572f1c319..adc475a4963050fc63f45698ef428c6e80387609 100644 (file)
@@ -216,8 +216,10 @@ program-eeprom-%: %.eep.bincs
 %.eep.hex: %.elf
        $(OBJCOPY) --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O ihex -j .eeprom $< $@
 
+NODEID ?= 1
+
 %.bincs: %.bin
-       ../tools/fixcrc < $< > $@
+       ../tools/patcheeprom $(NODEID) < $< > $@
 
 %.eep.bin: %.elf
        $(OBJCOPY) --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 -O binary -j .eeprom $< $@
@@ -225,9 +227,9 @@ program-eeprom-%: %.eep.bincs
 %.lss: %.elf
        $(OBJDUMP) -h -S $< > $@
 
-.PHONY: fuses-atmega8-fnordlichtmini-without-bootloader
+.PHONY: fuses
 
-fuses-atmega8-fnordlichtmini-without-bootloader:
-       $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(DEV) -U lfuse:w:0x3f:m -U hfuse:w:0xd9:m
+fuses:
+       $(AVRDUDE) $(AVRDUDE_FLAGS) -c $(PROG) -P $(DEV) -U lfuse:w:0x3f:m -U hfuse:w:0xd1:m
 
 -include $(shell $(MKDIR) .dep 2>/dev/null) $(wildcard .dep/*)
Impressum, Datenschutz