Subject: [alpine-aports] [PATCH] main/grub: fix build on mips*

From: alpine-mips-patches <[email-masked]>
Date: Mon, 26 Nov 2018 22:05:43 +0000

Provide some basic mips* support just to allow the build succeed.

Disabling on mips* is not an option cause the arch= list becomes
too long and ugly.

Do not bump pkgrel since no previously built mips* apks exist and
change does nothing for other architectures.
---
 main/grub/APKBUILD | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/main/grub/APKBUILD b/main/grub/APKBUILD
index 4e2a0e2741..bee47ab9b2 100644
--- a/main/grub/APKBUILD
+++ b/main/grub/APKBUILD
@@ -23,6 +23,7 @@ case "$CARCH" in
 x86)		flavors="efi bios";;
 x86_64)		flavors="efi bios xenhost";;
 aarch64|arm*)	flavors="efi";;
+mips*)		flavors="qemu_mips";;
 ppc*)		flavors="ieee1275"; makedepends="$makedepends powerpc-utils" ;;
 s390x)		flavors="emu" ;;
 esac
@@ -143,6 +144,13 @@ xenhost() {
 	mv $pkgdir/*-xen.bin $subpkgdir/usr/lib/grub-xen/
 }
 
+qemu_mips() {
+	pkgdesc="$pkgdesc (QEMU MIPS version)"
+	depends="$pkgname"
+	mkdir -p $subpkgdir/usr/lib/grub
+	mv $pkgdir/usr/lib/grub/*-qemu_mips $subpkgdir/usr/lib/grub/
+}
+
 ieee1275() {
 	pkgdesc="$pkgdesc (IEEE1275 version)"
 	depends="$pkgname powerpc-utils"
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---