From 593747c381b194ced56adcce6903a003b97ef527 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Thu, 28 Sep 2006 22:13:24 +0000 Subject: Add a workaround for binutils-2.17's pickyness about copying an empty section in [avr-]objcopy, until a new version of avr-libc is going to be released. --- devel/avr-libc/files/patch-binutils2.17 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 devel/avr-libc/files/patch-binutils2.17 (limited to 'devel/avr-libc/files/patch-binutils2.17') diff --git a/devel/avr-libc/files/patch-binutils2.17 b/devel/avr-libc/files/patch-binutils2.17 new file mode 100644 index 000000000000..52f20cb47148 --- /dev/null +++ b/devel/avr-libc/files/patch-binutils2.17 @@ -0,0 +1,28 @@ +Index: doc/examples/demo/Makefile +=================================================================== +RCS file: /home/cvs/avr-libc/avr-libc/doc/examples/demo/Makefile,v +retrieving revision 1.10 +retrieving revision 1.11 +diff -u -u -r1.10 -r1.11 +--- doc/examples/demo/Makefile 19 Apr 2006 20:09:20 -0000 1.10 ++++ doc/examples/demo/Makefile 28 Aug 2006 05:23:27 -0000 1.11 +@@ -108,13 +108,16 @@ + esrec: $(PRG)_eeprom.srec + + %_eeprom.hex: %.elf +- $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@ ++ $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@ \ ++ || { echo empty $@ not generated; exit 0; } + + %_eeprom.srec: %.elf +- $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@ ++ $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@ \ ++ || { echo empty $@ not generated; exit 0; } + + %_eeprom.bin: %.elf +- $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@ ++ $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@ \ ++ || { echo empty $@ not generated; exit 0; } + + # Every thing below here is used by avr-libc's build system and can be ignored + # by the casual user. -- cgit v1.2.3