diff options
-rw-r--r-- | testing/grub/APKBUILD | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/testing/grub/APKBUILD b/testing/grub/APKBUILD index 17c6f3e715..a01f83f99a 100644 --- a/testing/grub/APKBUILD +++ b/testing/grub/APKBUILD @@ -3,7 +3,7 @@ pkgname=grub _ver=2.02~beta3 pkgver=2.02_beta3 -pkgrel=2 +pkgrel=3 pkgdesc="Bootloader with support for Linux, Multiboot and more" url="https://www.gnu.org/software/grub/" arch="all !armhf" @@ -15,7 +15,10 @@ makedepends="$depends_dev bison flex linux-headers xz-dev lvm2-dev install="" # strip handled by grub Makefiles, abuild strip breaks xen pv-grub options="!strip" -subpackages="$pkgname-dev $pkgname-doc $pkgname-efi $pkgname-xenhost" +subpackages="$pkgname-dev $pkgname-doc $pkgname-efi" +if [ "$CARCH" != "x86" ]; then + subpackages="$subpackages $pkgname-xenhost" +fi source="ftp://alpha.gnu.org/gnu/grub/grub-$_ver.tar.xz 2.02_beta3-gcc6-ld-no-pie.patch fix-gcc-no-pie-specs.patch @@ -64,20 +67,23 @@ _build_efi() { } _build_xen() { - cd $builddir/xen - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - --disable-nls \ - --disable-werror \ - --with-platform=xen \ - --target=$CARCH \ + #Xen is not supported on x86 + if [ "$CARCH" != "x86" ]; then + cd $builddir/xen + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-nls \ + --disable-werror \ + --with-platform=xen \ + --target=$CARCH \ || return 1 - make || return 1 + make || return 1 + fi } build() { |