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() {