Override binary-from-other-architecture for kernel.img as well as *.mod

when building grub-efi-amd64 on i386.
This commit is contained in:
Colin Watson 2010-06-01 13:45:35 +01:00
parent f795e757dd
commit da2dd9be89
2 changed files with 5 additions and 0 deletions

2
debian/changelog vendored
View File

@ -4,6 +4,8 @@ grub2 (1.98+20100527-2) UNRELEASED; urgency=low
dynamic linking makes no sense here.
* kernel.img is stripped upstream where it can be, but override Lintian's
error for the cases where it can't.
* Override binary-from-other-architecture for kernel.img as well as *.mod
when building grub-efi-amd64 on i386.
-- Colin Watson <cjwatson@debian.org> Tue, 01 Jun 2010 13:31:46 +0100

3
debian/rules vendored
View File

@ -131,6 +131,9 @@ install/grub-pc install/grub-efi-ia32 install/grub-efi-amd64 install/grub-ieee12
if [ "$@" = "install/grub-efi-amd64" ] && [ "$(DEB_HOST_ARCH_CPU)" = "i386" ] ; then \
echo "$(subst install/,,$@): binary-from-other-architecture *.mod" \
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@) ; \
cd $(CURDIR)/debian/$(subst install/,,$@) && find ./usr/lib/grub -name kernel.img \
| sed -e "s%.*%$(subst install/,,$@): binary-from-other-architecture &%g" \
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@) ; \
fi
if [ "$@" = "install/grub-pc" ] && [ "$(DEB_HOST_ARCH_CPU)" = "i386" ] ; then \
echo "$(subst install/,,$@): binary-from-other-architecture *efiemu64.o" \