]> git.zerfleddert.de Git - fnordlicht-mini/commitdiff
use patcheeprom instead of fixcrc, now
authorgitknilch <gitknilch@cwde.de>
Tue, 29 Mar 2011 12:36:01 +0000 (14:36 +0200)
committergitknilch <gitknilch@cwde.de>
Tue, 29 Mar 2011 12:36:01 +0000 (14:36 +0200)
  make NODEID=2 program-eeprom-fnordlicht
will patch and program the eeprom for node id 2

firmware/fnordlicht-firmware/Makefile

index 345a4c1ef2a43f0e3be6459f409b61c572f1c319..4b1167aef386577ba80c88150ca8d9655727ba69 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 $< $@
Impressum, Datenschutz