mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
edk2-ovmf: enable on aarch64*
This commit is contained in:
parent
6e0359a254
commit
0cfc368caf
1 changed files with 18 additions and 16 deletions
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'edk2-ovmf'
|
# Template file for 'edk2-ovmf'
|
||||||
pkgname=edk2-ovmf
|
pkgname=edk2-ovmf
|
||||||
version=202402
|
version=202402
|
||||||
revision=1
|
revision=2
|
||||||
_mipi_commit=370b5944c046bab043dd8b133727b2135af7747a
|
_mipi_commit=370b5944c046bab043dd8b133727b2135af7747a
|
||||||
_openssl_version=3.0.9
|
_openssl_version=3.0.9
|
||||||
_mbedtls_commit=8c89224991adff88d53cd380f42a2baa36f91454
|
_mbedtls_commit=8c89224991adff88d53cd380f42a2baa36f91454
|
||||||
_softfloat_commit=b64af41c3276f97f0e181920400ee056b9c88037
|
_softfloat_commit=b64af41c3276f97f0e181920400ee056b9c88037
|
||||||
hostmakedepends="acpica-utils nasm python3 cross-arm-none-eabi-gcc"
|
archs="x86_64* i686* aarch64*"
|
||||||
makedepends="libuuid-devel"
|
hostmakedepends="acpica-utils nasm python3 libuuid-devel"
|
||||||
short_desc="EFI Development Kit II - Open Virtual Machine Firmware"
|
short_desc="EFI Development Kit II - Open Virtual Machine Firmware"
|
||||||
maintainer="classabbyamp <void@placeviolette.net>"
|
maintainer="classabbyamp <void@placeviolette.net>"
|
||||||
license="BSD-2-Clause-Patent, MIT"
|
license="BSD-2-Clause-Patent, MIT"
|
||||||
|
@ -27,22 +27,20 @@ skip_extraction="${_mipi_commit}.tar.gz
|
||||||
openssl-${_openssl_version}.tar.gz
|
openssl-${_openssl_version}.tar.gz
|
||||||
${_mbedtls_commit}.tar.gz
|
${_mbedtls_commit}.tar.gz
|
||||||
${_softfloat_commit}.tar.gz"
|
${_softfloat_commit}.tar.gz"
|
||||||
nocross="probably possible, but complex"
|
|
||||||
|
|
||||||
case "$XBPS_TARGET_LIBC" in
|
case "$XBPS_TARGET_LIBC" in
|
||||||
glibc)
|
glibc) _pfx="gnu" ;;
|
||||||
hostmakedepends+=" cross-aarch64-linux-gnu"
|
musl) _pfx="musl" ;;
|
||||||
_pfx="gnu"
|
|
||||||
;;
|
|
||||||
musl)
|
|
||||||
hostmakedepends+=" cross-aarch64-linux-musl"
|
|
||||||
_pfx="musl"
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$XBPS_MACHINE" in
|
case "$XBPS_MACHINE" in
|
||||||
|
x86_64*|i686*) hostmakedepends+=" cross-aarch64-linux-${_pfx} cross-arm-linux-${_pfx}eabihf" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
x86_64*) _archs=(X64 IA32 AARCH64 ARM) ;;
|
x86_64*) _archs=(X64 IA32 AARCH64 ARM) ;;
|
||||||
i686*) _archs=(IA32 AARCH64 ARM) ;;
|
i686*) _archs=(IA32 AARCH64 ARM) ;;
|
||||||
|
aarch64*) _archs=(AARCH64) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
@ -59,11 +57,15 @@ do_build() {
|
||||||
local _x86_args=(-D FD_SIZE_2MB -D HTTP_BOOT_ENABLE -D TLS_ENABLE)
|
local _x86_args=(-D FD_SIZE_2MB -D HTTP_BOOT_ENABLE -D TLS_ENABLE)
|
||||||
local _4mb_args=(-D FD_SIZE_4MB -D FD_SIZE_IN_KB=4096 -D HTTP_BOOT_ENABLE -D TLS_ENABLE)
|
local _4mb_args=(-D FD_SIZE_4MB -D FD_SIZE_IN_KB=4096 -D HTTP_BOOT_ENABLE -D TLS_ENABLE)
|
||||||
|
|
||||||
export GCC5_AARCH64_PREFIX="aarch64-linux-${_pfx}-"
|
case "$XBPS_MACHINE" in
|
||||||
export GCC5_ARM_PREFIX="arm-none-eabi-"
|
x86_64*|i686*)
|
||||||
|
export GCC5_AARCH64_PREFIX="aarch64-linux-${_pfx}-"
|
||||||
|
export GCC5_ARM_PREFIX="arm-linux-${_pfx}eabihf-"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
for _arch in "" AARCH64 ARM; do
|
for _arch in "${_archs[@]}"; do
|
||||||
ARCH="$_arch" make "${makejobs}" -C BaseTools
|
CC=gcc CXX=g++ ARCH="${_arch}" make "${makejobs}" -C BaseTools
|
||||||
done
|
done
|
||||||
. edksetup.sh
|
. edksetup.sh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue