From: gitknilch Date: Tue, 29 Mar 2011 12:36:01 +0000 (+0200) Subject: use patcheeprom instead of fixcrc, now X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/fnordlicht-mini/commitdiff_plain/e658ca232abc7fcc848c92c81b698749454f4288?ds=sidebyside use patcheeprom instead of fixcrc, now make NODEID=2 program-eeprom-fnordlicht will patch and program the eeprom for node id 2 --- diff --git a/firmware/fnordlicht-firmware/Makefile b/firmware/fnordlicht-firmware/Makefile index 345a4c1..4b1167a 100644 --- a/firmware/fnordlicht-firmware/Makefile +++ b/firmware/fnordlicht-firmware/Makefile @@ -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 $< $@