mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-firmware/edk2-ovmf: use secureboot.eclass to sign efi exec
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -6,7 +6,7 @@ EAPI=7
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python3_{9,10,11} )
|
||||
|
||||
inherit python-any-r1 readme.gentoo-r1
|
||||
inherit python-any-r1 readme.gentoo-r1 secureboot
|
||||
|
||||
DESCRIPTION="UEFI firmware for 64-bit x86 virtual machines"
|
||||
HOMEPAGE="https://github.com/tianocore/edk2"
|
||||
@@ -90,6 +90,7 @@ In order to use the firmware you can run qemu the following way
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${PV} != "999999" ]] && use binary || python-any-r1_pkg_setup
|
||||
secureboot_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
@@ -169,6 +170,8 @@ src_install() {
|
||||
doins qemu/*
|
||||
rm "${ED}"/usr/share/qemu/firmware/40-edk2-ovmf-x64-sb-enrolled.json || die "rm failed"
|
||||
|
||||
secureboot_auto_sign --in-place
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
PYTHON_COMPAT=( python3_{9,10,11} )
|
||||
|
||||
inherit python-any-r1 readme.gentoo-r1
|
||||
inherit python-any-r1 readme.gentoo-r1 secureboot
|
||||
|
||||
DESCRIPTION="UEFI firmware for 64-bit x86 virtual machines"
|
||||
HOMEPAGE="https://github.com/tianocore/edk2"
|
||||
@@ -69,6 +69,11 @@ In order to use the firmware you can run qemu the following way
|
||||
-drive file=/usr/share/edk2-ovmf/OVMF.fd,if=pflash,format=raw,unit=0,readonly=on \
|
||||
..."
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
secureboot_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Bundled submodules
|
||||
cp -rl "${WORKDIR}/openssl-${BUNDLED_OPENSSL_SUBMODULE_SHA}"/* "CryptoPkg/Library/OpensslLib/openssl/"
|
||||
@@ -140,6 +145,8 @@ src_install() {
|
||||
doins qemu/*
|
||||
rm "${ED}"/usr/share/qemu/firmware/40-edk2-ovmf-x64-sb-enrolled.json || die "rm failed"
|
||||
|
||||
secureboot_auto_sign --in-place
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user