From a1c6f3a3b7a9b8b1a823163deef736de8b8e0d43 Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 17 Dec 2018 15:14:37 +0100 Subject: [PATCH] grub: enable ppc64 builds (without a native platform for now) The correct way would be to build grub-ieee1275 but that needs a compiler capable of generating 32-bit big endian binaries which we don't have. It is, however, still useful to build grub utils as they can manage the configuration files in /boot, which can subsequently be read by bootloaders such as petitboot (for example found on the Raptor Talos 2 POWER9 system). [ci skip] --- srcpkgs/grub/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index 31e607cef6f..fd68d101d48 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -14,7 +14,7 @@ homepage="https://www.gnu.org/software/grub/" distfiles="${GNU_SITE}/grub/grub-${version}.tar.xz" checksum=810b3798d316394f94096ec2797909dbf23c858e48f7b3830826b8daa06b7b0f -only_for_archs="i686 i686-musl x86_64 x86_64-musl aarch64 aarch64-musl" +only_for_archs="i686 i686-musl x86_64 x86_64-musl aarch64 aarch64-musl ppc64le ppc64le-musl ppc64-musl" nopie=yes subpackages="grub-utils" @@ -36,6 +36,14 @@ case "$XBPS_TARGET_MACHINE" in _NATIVE_PLATFORM=efi subpackages+=" grub-arm64-efi" ;; + ppc64*) + # don't have a native platform for now, ieee1275 needs a compiler + # capable of generating big-endian 32-bit binaries; only build utils + # for now, so we can generate config files to be used by petitboot etc. + # TODO: look into building with the below later + #_NATIVE_PLATFORM=ieee1275 + configure_args+=" --with-platform=none" + ;; esac post_extract() {