Most of the rules in the avr makefile are not used anymore
and should be removed. In the meantime we change those needed to upload flash and eeprom to depend on the default contiki rule to make the .$(TARGET) executable."
This commit is contained in:
parent
018be89b11
commit
e51783a1d5
|
@ -139,10 +139,10 @@ ifndef NOAVRSIZE
|
||||||
avr-size -C --mcu=$(MCU) $@
|
avr-size -C --mcu=$(MCU) $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
%.hex: %.out
|
%.hex: %.$(TARGET)
|
||||||
$(OBJCOPY) $^ -j .text -j .data -O ihex $@
|
$(OBJCOPY) $^ -j .text -j .data -O ihex $@
|
||||||
|
|
||||||
%.ihex: %.out
|
%.ihex: %.$(TARGET)
|
||||||
$(OBJCOPY) $^ -O ihex $@
|
$(OBJCOPY) $^ -O ihex $@
|
||||||
|
|
||||||
# Add a namelist to the kernel
|
# Add a namelist to the kernel
|
||||||
|
@ -160,7 +160,7 @@ endif
|
||||||
#%.hex: %.elf
|
#%.hex: %.elf
|
||||||
# $(OBJCOPY) -R .eeprom -R .fuse -R .signature $^ -O ihex $@
|
# $(OBJCOPY) -R .eeprom -R .fuse -R .signature $^ -O ihex $@
|
||||||
|
|
||||||
%.eep: %.out
|
%.eep: %.$(TARGET)
|
||||||
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
|
-$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \
|
||||||
--change-section-lma .eeprom=0 -O ihex $^ $@
|
--change-section-lma .eeprom=0 -O ihex $^ $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue