Patches for aports can be sent to this list

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

alpine-mips-patches
Details
Message ID
<20181126225521.93D1B64018@mx7.valuehost.ru>
Sender timestamp
1543269943
DKIM signature
missing
Download raw message
Patch: +8 -0
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---