%.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 $< $@
%.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/*)