From a19279ae03d2b17687fc61fd07f333426fe8a1a6 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 25 Jan 2019 01:49:42 +0100 Subject: [PATCH] grub: enable open firmware platform for all ppc targets [ci skip] --- srcpkgs/grub-powerpc-ieee1275 | 1 + srcpkgs/grub/template | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 120000 srcpkgs/grub-powerpc-ieee1275 diff --git a/srcpkgs/grub-powerpc-ieee1275 b/srcpkgs/grub-powerpc-ieee1275 new file mode 120000 index 00000000000..2c8276e741a --- /dev/null +++ b/srcpkgs/grub-powerpc-ieee1275 @@ -0,0 +1 @@ +grub \ No newline at end of file diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index fd68d101d48..4da590eaad9 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -36,13 +36,9 @@ 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" + ppc*) + _NATIVE_PLATFORM=ieee1275 + subpackages+=" grub-powerpc-ieee1275" ;; esac @@ -184,3 +180,11 @@ grub-arm64-efi_package() { vmove usr/lib/grub/arm64-efi } } +grub-powerpc-ieee1275_package() { + noarch=yes + depends="grub>=$version powerpc-utils" + short_desc+=" - powerpc Open Firmware support" + pkg_install() { + vmove usr/lib/grub/powerpc-ieee1275 + } +}