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]
This commit is contained in:
parent
40e83213aa
commit
a1c6f3a3b7
1 changed files with 9 additions and 1 deletions
|
@ -14,7 +14,7 @@ homepage="https://www.gnu.org/software/grub/"
|
||||||
distfiles="${GNU_SITE}/grub/grub-${version}.tar.xz"
|
distfiles="${GNU_SITE}/grub/grub-${version}.tar.xz"
|
||||||
checksum=810b3798d316394f94096ec2797909dbf23c858e48f7b3830826b8daa06b7b0f
|
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
|
nopie=yes
|
||||||
|
|
||||||
subpackages="grub-utils"
|
subpackages="grub-utils"
|
||||||
|
@ -36,6 +36,14 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
_NATIVE_PLATFORM=efi
|
_NATIVE_PLATFORM=efi
|
||||||
subpackages+=" grub-arm64-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
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue