[arch-commits] Commit in ovmf/repos (testing-any testing-any/PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Mon Jul 8 16:34:44 UTC 2019


    Date: Monday, July 8, 2019 @ 16:34:44
  Author: anatolik
Revision: 357403

archrelease: copy trunk to testing-any

Added:
  ovmf/repos/testing-any/
  ovmf/repos/testing-any/PKGBUILD
    (from rev 357402, ovmf/trunk/PKGBUILD)

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

Copied: ovmf/repos/testing-any/PKGBUILD (from rev 357402, ovmf/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2019-07-08 16:34:44 UTC (rev 357403)
@@ -0,0 +1,59 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+pkgname=ovmf
+pkgver=r26214.20d2e5a125
+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-stable201905
+_openssl_ver=1.1.1b
+source=(edk2::git+https://github.com/tianocore/edk2#commit=$_commit
+        https://www.openssl.org/source/openssl-$_openssl_ver.tar.gz{,.asc})
+sha256sums=('SKIP'
+            '5c557b023230413dfb0756f3137a13e6d726838ccd1430888ad15bfb2b43ea4b'
+            'SKIP')
+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() {
+  cd "${srcdir}"
+  # 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 "${srcdir}/"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
+}



More information about the arch-commits mailing list