Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

Jurica Stanojkovic Jurica.Stanojkovic at imgtec.com
Fri Sep 26 10:55:43 UTC 2014


Hello,

I have attached a new patch.
It is tested on mipsel and i386.

--- grub2-2.02~beta2.orig/gentpl.py
+++ grub2-2.02~beta2/gentpl.py
@@ -753,7 +753,7 @@ def image(defn, platform):
 if test x$(TARGET_APPLE_LINKER) = x1; then \
   $(MACHO2IMG) $< $@; \
 else \
-  $(TARGET_OBJCOPY) $(""" + cname(defn) + """_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $< $@; \
+  $(TARGET_OBJCOPY) $(""" + cname(defn) + """_OBJCOPYFLAGS) --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $< $@; \
 fi
 """)


Thank you!
Jurica
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-gentpl.patch
Type: text/x-patch
Size: 583 bytes
Desc: mips-gentpl.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20140926/95d7a9d5/attachment.bin>


More information about the Pkg-grub-devel mailing list