aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-22 14:50:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-22 14:52:05 +0000
commit390351a6989c8dbcb4dd159e9809ccb0427462c5 (patch)
tree8e506c33865eb230ee8819ad6dacb8c7a5e7006b
parentcb91707ee4b8b78a44dee38d767eaace8f5f11ef (diff)
downloadaports-390351a6989c8dbcb4dd159e9809ccb0427462c5.tar.bz2
aports-390351a6989c8dbcb4dd159e9809ccb0427462c5.tar.xz
main/grub: disable on s390x
-rw-r--r--main/grub/APKBUILD37
1 files changed, 36 insertions, 1 deletions
diff --git a/main/grub/APKBUILD b/main/grub/APKBUILD
index 4783fdaa02..b77d443ead 100644
--- a/main/grub/APKBUILD
+++ b/main/grub/APKBUILD
@@ -6,7 +6,7 @@ pkgver=2.02_beta3
pkgrel=6
pkgdesc="Bootloader with support for Linux, Multiboot and more"
url="https://www.gnu.org/software/grub/"
-arch="all !armhf"
+arch="all !armhf !s390x"
license="GPLv3+"
depends=""
depends_dev=""
@@ -23,6 +23,7 @@ x86) subpackages="$subpackages $pkgname-efi $pkgname-bios" ;;
x86_64) subpackages="$subpackages $pkgname-efi $pkgname-bios $pkgname-xenhost" ;;
aarch64) subpackages="$subpackages $pkgname-efi" ;;
ppc64le) subpackages="$subpackages $pkgname-ieee1275" ;;
+s390x) subpackages="$subpackages $pkgname-emu" ;;
esac
source="ftp://alpha.gnu.org/gnu/grub/grub-$_ver.tar.xz
@@ -105,6 +106,23 @@ _build_ieee1275() {
make || return 1
}
+_build_emu() {
+ msg "Building grub for platform EMU"
+ cd $builddir/emu
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-nls \
+ --disable-werror \
+ --with-platform=emu \
+ || return 1
+ make || return 1
+}
+
build() {
cd "$builddir"
autoreconf -vif || return 1
@@ -117,6 +135,7 @@ build() {
cp -r "$tmpdir" "$builddir"/bios
cp -r "$tmpdir" "$builddir"/efi
cp -r "$tmpdir" "$builddir"/xen
+ cp -r "$tmpdir" "$builddir"/emu
mv "$tmpdir" "$builddir"/ieee1275
case "$CARCH" in
@@ -131,6 +150,8 @@ build() {
_build_efi || return 1 ;;
ppc64le)
_build_ieee1275 || return 1 ;;
+ s390x)
+ _build_emu || return 1;;
esac
}
@@ -175,6 +196,11 @@ _install_ieee1275() {
make DESTDIR="$pkgdir" install-strip || return 1
}
+_install_emu() {
+ cd "$builddir"/emu
+ make DESTDIR="$pkgdir" install-strip || return 1
+}
+
package() {
# install BIOS & EFI version into the same directory
# and overwrite similar files.
@@ -191,6 +217,8 @@ package() {
_install_efi ;;
ppc64le)
_install_ieee1275 ;;
+ s390x)
+ _install_emu ;;
esac
rm -f "$pkgdir"/usr/lib/charset.alias
@@ -223,6 +251,13 @@ ieee1275() {
mv $pkgdir/usr/lib/grub/*-ieee1275 $subpkgdir/usr/lib/grub/
}
+emu() {
+ pkgdesc="$pkgdesc (EMU version)"
+ depends="$pkgname"
+ mkdir -p $subpkgdir/usr/lib/grub
+ mv $pkgdir/usr/lib/grub/*-emu $subpkgdir/usr/lib/grub/
+}
+
sha512sums="4a530efef4dae45f4046cf3550563f14acb24d25cb88d5e06c93953ca5b1eec115118c6860233a9f627edcddae2571e5d6b867b70ff9dd5c184c9fef83ef7e11 grub-2.02~beta3.tar.xz
fc15c95bf26b28eee3b5a0d8e5fac538445179cea19a8657cd360e37dd5a95010ea2b899d1e4f3692b778a71f79526539ad1c741f028186f0daf135ee1678da0 2.02_beta3-gcc6-ld-no-pie.patch
b9eab870006ab7842e0af27171d3b66fea10835d3fd4e606f241a9898aa28bfc4c1cdf59cece8ad50d2e284a44cba74eb0f390ac29627518f86257a8d586976e fix-gcc-no-pie-specs.patch