From e658ca232abc7fcc848c92c81b698749454f4288 Mon Sep 17 00:00:00 2001 From: gitknilch Date: Tue, 29 Mar 2011 14:36:01 +0200 Subject: [PATCH 1/1] use patcheeprom instead of fixcrc, now make NODEID=2 program-eeprom-fnordlicht will patch and program the eeprom for node id 2 --- firmware/fnordlicht-firmware/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $< $@ -- 2.39.5