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

Colin Watson cjwatson at debian.org
Thu Sep 25 16:39:22 UTC 2014


On Thu, Sep 25, 2014 at 03:52:52PM +0000, Jurica Stanojkovic wrote:
> --- grub2-2.02~beta2.orig/gentpl.py
> +++ grub2-2.02~beta2/gentpl.py
> @@ -753,7 +753,11 @@ 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 $< $@; \
> +  case "$(target_cpu)"-"$(target_vendor)" in \
> +    mipsel-*) $(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 $< $@; ;; \
> +    mips-*) $(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 $< $@; ;; \
> +    *) $(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 $< $@; ;; \
> +  esac \
>  fi
>  """)
>  

I think we could just remove that section on all architectures; there
doesn't seem any particular reason to make the code more complex in
order to do it just on mips*.

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-grub-devel mailing list