diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-22 14:50:07 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-22 14:52:05 +0000 |
commit | 390351a6989c8dbcb4dd159e9809ccb0427462c5 (patch) | |
tree | 8e506c33865eb230ee8819ad6dacb8c7a5e7006b | |
parent | cb91707ee4b8b78a44dee38d767eaace8f5f11ef (diff) | |
download | alpine_aports-390351a6989c8dbcb4dd159e9809ccb0427462c5.tar.bz2 alpine_aports-390351a6989c8dbcb4dd159e9809ccb0427462c5.tar.xz alpine_aports-390351a6989c8dbcb4dd159e9809ccb0427462c5.zip |
main/grub: disable on s390x
-rw-r--r-- | main/grub/APKBUILD | 37 |
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 | |||
6 | pkgrel=6 | 6 | pkgrel=6 |
7 | pkgdesc="Bootloader with support for Linux, Multiboot and more" | 7 | pkgdesc="Bootloader with support for Linux, Multiboot and more" |
8 | url="https://www.gnu.org/software/grub/" | 8 | url="https://www.gnu.org/software/grub/" |
9 | arch="all !armhf" | 9 | arch="all !armhf !s390x" |
10 | license="GPLv3+" | 10 | license="GPLv3+" |
11 | depends="" | 11 | depends="" |
12 | depends_dev="" | 12 | depends_dev="" |
@@ -23,6 +23,7 @@ x86) subpackages="$subpackages $pkgname-efi $pkgname-bios" ;; | |||
23 | x86_64) subpackages="$subpackages $pkgname-efi $pkgname-bios $pkgname-xenhost" ;; | 23 | x86_64) subpackages="$subpackages $pkgname-efi $pkgname-bios $pkgname-xenhost" ;; |
24 | aarch64) subpackages="$subpackages $pkgname-efi" ;; | 24 | aarch64) subpackages="$subpackages $pkgname-efi" ;; |
25 | ppc64le) subpackages="$subpackages $pkgname-ieee1275" ;; | 25 | ppc64le) subpackages="$subpackages $pkgname-ieee1275" ;; |
26 | s390x) subpackages="$subpackages $pkgname-emu" ;; | ||
26 | esac | 27 | esac |
27 | 28 | ||
28 | source="ftp://alpha.gnu.org/gnu/grub/grub-$_ver.tar.xz | 29 | source="ftp://alpha.gnu.org/gnu/grub/grub-$_ver.tar.xz |
@@ -105,6 +106,23 @@ _build_ieee1275() { | |||
105 | make || return 1 | 106 | make || return 1 |
106 | } | 107 | } |
107 | 108 | ||
109 | _build_emu() { | ||
110 | msg "Building grub for platform EMU" | ||
111 | cd $builddir/emu | ||
112 | ./configure \ | ||
113 | --build=$CBUILD \ | ||
114 | --host=$CHOST \ | ||
115 | --prefix=/usr \ | ||
116 | --sysconfdir=/etc \ | ||
117 | --mandir=/usr/share/man \ | ||
118 | --localstatedir=/var \ | ||
119 | --disable-nls \ | ||
120 | --disable-werror \ | ||
121 | --with-platform=emu \ | ||
122 | || return 1 | ||
123 | make || return 1 | ||
124 | } | ||
125 | |||
108 | build() { | 126 | build() { |
109 | cd "$builddir" | 127 | cd "$builddir" |
110 | autoreconf -vif || return 1 | 128 | autoreconf -vif || return 1 |
@@ -117,6 +135,7 @@ build() { | |||
117 | cp -r "$tmpdir" "$builddir"/bios | 135 | cp -r "$tmpdir" "$builddir"/bios |
118 | cp -r "$tmpdir" "$builddir"/efi | 136 | cp -r "$tmpdir" "$builddir"/efi |
119 | cp -r "$tmpdir" "$builddir"/xen | 137 | cp -r "$tmpdir" "$builddir"/xen |
138 | cp -r "$tmpdir" "$builddir"/emu | ||
120 | mv "$tmpdir" "$builddir"/ieee1275 | 139 | mv "$tmpdir" "$builddir"/ieee1275 |
121 | 140 | ||
122 | case "$CARCH" in | 141 | case "$CARCH" in |
@@ -131,6 +150,8 @@ build() { | |||
131 | _build_efi || return 1 ;; | 150 | _build_efi || return 1 ;; |
132 | ppc64le) | 151 | ppc64le) |
133 | _build_ieee1275 || return 1 ;; | 152 | _build_ieee1275 || return 1 ;; |
153 | s390x) | ||
154 | _build_emu || return 1;; | ||
134 | esac | 155 | esac |
135 | } | 156 | } |
136 | 157 | ||
@@ -175,6 +196,11 @@ _install_ieee1275() { | |||
175 | make DESTDIR="$pkgdir" install-strip || return 1 | 196 | make DESTDIR="$pkgdir" install-strip || return 1 |
176 | } | 197 | } |
177 | 198 | ||
199 | _install_emu() { | ||
200 | cd "$builddir"/emu | ||
201 | make DESTDIR="$pkgdir" install-strip || return 1 | ||
202 | } | ||
203 | |||
178 | package() { | 204 | package() { |
179 | # install BIOS & EFI version into the same directory | 205 | # install BIOS & EFI version into the same directory |
180 | # and overwrite similar files. | 206 | # and overwrite similar files. |
@@ -191,6 +217,8 @@ package() { | |||
191 | _install_efi ;; | 217 | _install_efi ;; |
192 | ppc64le) | 218 | ppc64le) |
193 | _install_ieee1275 ;; | 219 | _install_ieee1275 ;; |
220 | s390x) | ||
221 | _install_emu ;; | ||
194 | esac | 222 | esac |
195 | 223 | ||
196 | rm -f "$pkgdir"/usr/lib/charset.alias | 224 | rm -f "$pkgdir"/usr/lib/charset.alias |
@@ -223,6 +251,13 @@ ieee1275() { | |||
223 | mv $pkgdir/usr/lib/grub/*-ieee1275 $subpkgdir/usr/lib/grub/ | 251 | mv $pkgdir/usr/lib/grub/*-ieee1275 $subpkgdir/usr/lib/grub/ |
224 | } | 252 | } |
225 | 253 | ||
254 | emu() { | ||
255 | pkgdesc="$pkgdesc (EMU version)" | ||
256 | depends="$pkgname" | ||
257 | mkdir -p $subpkgdir/usr/lib/grub | ||
258 | mv $pkgdir/usr/lib/grub/*-emu $subpkgdir/usr/lib/grub/ | ||
259 | } | ||
260 | |||
226 | sha512sums="4a530efef4dae45f4046cf3550563f14acb24d25cb88d5e06c93953ca5b1eec115118c6860233a9f627edcddae2571e5d6b867b70ff9dd5c184c9fef83ef7e11 grub-2.02~beta3.tar.xz | 261 | sha512sums="4a530efef4dae45f4046cf3550563f14acb24d25cb88d5e06c93953ca5b1eec115118c6860233a9f627edcddae2571e5d6b867b70ff9dd5c184c9fef83ef7e11 grub-2.02~beta3.tar.xz |
227 | fc15c95bf26b28eee3b5a0d8e5fac538445179cea19a8657cd360e37dd5a95010ea2b899d1e4f3692b778a71f79526539ad1c741f028186f0daf135ee1678da0 2.02_beta3-gcc6-ld-no-pie.patch | 262 | fc15c95bf26b28eee3b5a0d8e5fac538445179cea19a8657cd360e37dd5a95010ea2b899d1e4f3692b778a71f79526539ad1c741f028186f0daf135ee1678da0 2.02_beta3-gcc6-ld-no-pie.patch |
228 | b9eab870006ab7842e0af27171d3b66fea10835d3fd4e606f241a9898aa28bfc4c1cdf59cece8ad50d2e284a44cba74eb0f390ac29627518f86257a8d586976e fix-gcc-no-pie-specs.patch | 263 | b9eab870006ab7842e0af27171d3b66fea10835d3fd4e606f241a9898aa28bfc4c1cdf59cece8ad50d2e284a44cba74eb0f390ac29627518f86257a8d586976e fix-gcc-no-pie-specs.patch |