Date: Wednesday, January 8, 2020 @ 20:37:01 Author: anatolik Revision: 372833
archrelease: copy trunk to testing-any Added: ovmf/repos/testing-any/ ovmf/repos/testing-any/60-edk2-ovmf-x86_64.json (from rev 372832, ovmf/trunk/60-edk2-ovmf-x86_64.json) ovmf/repos/testing-any/PKGBUILD (from rev 372832, ovmf/trunk/PKGBUILD) --------------------------+ 60-edk2-ovmf-x86_64.json | 34 +++++++++++++++++++++++++ PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) Copied: ovmf/repos/testing-any/60-edk2-ovmf-x86_64.json (from rev 372832, ovmf/trunk/60-edk2-ovmf-x86_64.json) =================================================================== --- testing-any/60-edk2-ovmf-x86_64.json (rev 0) +++ testing-any/60-edk2-ovmf-x86_64.json 2020-01-08 20:37:01 UTC (rev 372833) @@ -0,0 +1,34 @@ +{ + "description": "OVMF UEFI firmware for x86_64", + "interface-types": [ + "uefi" + ], + "mapping": { + "device": "flash", + "executable": { + "filename": "/usr/share/ovmf/x64/OVMF_CODE.fd", + "format": "raw" + }, + "nvram-template": { + "filename": "/usr/share/ovmf/x64/OVMF_VARS.fd", + "format": "raw" + } + }, + "targets": [ + { + "architecture": "x86_64", + "machines": [ + "pc-i440fx-*", + "pc-q35-*" + ] + } + ], + "features": [ + "acpi-s3", + "amd-sev", + "verbose-dynamic" + ], + "tags": [ + + ] +} Copied: ovmf/repos/testing-any/PKGBUILD (from rev 372832, ovmf/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2020-01-08 20:37:01 UTC (rev 372833) @@ -0,0 +1,61 @@ +# Maintainer: Thomas Bächler <tho...@archlinux.org> +pkgname=ovmf +pkgver=r26976.bd85bf54c2 +epoch=1 +pkgrel=1 +arch=('any') +pkgdesc="Tianocore UEFI firmware for qemu." +url="http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=EDK2" +license=('custom') +makedepends=('git' 'python' 'iasl' 'nasm' 'subversion' 'perl-libwww' 'bc') +_commit=edk2-stable201911 +_openssl_ver=1.1.1b # it should be 1.1.1d here but it has a compilation issue https://github.com/openssl/openssl/issues/9858 +source=(edk2::git+https://github.com/tianocore/edk2#commit=$_commit + https://www.openssl.org/source/openssl-$_openssl_ver.tar.gz{,.asc} + 60-edk2-ovmf-x86_64.json) # FS#64175 ; the file content should match https://git.qemu.org/?p=qemu.git;a=tree;f=pc-bios/descriptors +sha256sums=('SKIP' + '5c557b023230413dfb0756f3137a13e6d726838ccd1430888ad15bfb2b43ea4b' + 'SKIP' + 'b8f189f09593298c53e8b2afceadb17610b047fde51f4658e7373caeb3d0b856') +validpgpkeys=(8657ABB260F056B1E5190839D9C4D26D0E604491) +options=(!makeflags) +_toolchain_opt=GCC5 + +pkgver() { + cd "${srcdir}"/edk2 + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + # edk2 uses python everywhere, but expects python2 + #mkdir -p bin + #ln -sf /usr/bin/python2 bin/python + rm -rf "$srcdir"/edk2/CryptoPkg/Library/OpensslLib/openssl + ln -sf "$srcdir"/openssl-$_openssl_ver $srcdir/edk2/CryptoPkg/Library/OpensslLib/openssl +} + +build() { + if [ "$CARCH" != "x86_64" ]; then + error "This package must be built under the x86_64 architecture." + false + fi + export PATH="${srcdir}/bin:$PATH" + cd edk2 + make -C BaseTools + export EDK_TOOLS_PATH="${srcdir}"/edk2/BaseTools + . edksetup.sh BaseTools + + ./BaseTools/BinWrappers/PosixLike/build -t $_toolchain_opt -a X64 -p OvmfPkg/OvmfPkgX64.dsc -n $(nproc) -b RELEASE -D FD_SIZE_2MB -D NETWORK_IP6_ENABLE -D TPM2_ENABLE -D SECURE_BOOT_ENABLE -D HTTP_BOOT_ENABLE -D TLS_ENABLE + + # build fails for 32bit binary + # ./BaseTools/BinWrappers/PosixLike/build -t $_toolchain_opt -a IA32 -p OvmfPkg/OvmfPkgIa32.dsc -n $(nproc) -b RELEASE -D FD_SIZE_2MB +} + +package() { + #install -D -m644 "${srcdir}"/edk2/Build/OvmfIa32/RELEASE_${_toolchain_opt}/FV/OVMF_CODE.fd "${pkgdir}"/usr/share/ovmf/ia32/OVMF_CODE.fd + #install -D -m644 "${srcdir}"/edk2/Build/OvmfIa32/RELEASE_${_toolchain_opt}/FV/OVMF_VARS.fd "${pkgdir}"/usr/share/ovmf/ia32/OVMF_VARS.fd + install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF_CODE.fd "${pkgdir}"/usr/share/ovmf/x64/OVMF_CODE.fd + install -D -m644 "${srcdir}"/edk2/Build/OvmfX64/RELEASE_${_toolchain_opt}/FV/OVMF_VARS.fd "${pkgdir}"/usr/share/ovmf/x64/OVMF_VARS.fd + install -D -m644 "${srcdir}"/edk2/OvmfPkg/License.txt "${pkgdir}"/usr/share/licenses/ovmf/License.txt + install -D -m644 "${srcdir}"/60-edk2-ovmf-x86_64.json "${pkgdir}"/usr/share/qemu/firmware/60-edk2-ovmf-x86_64.json +}