summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-07-16 10:20:59 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2023-08-17 09:48:45 +0200
commita1f3d15c88e4a9a462fa04fba9602726b817d6b0 (patch)
tree9e7e2491eff4b03034727abd022b1405d3e37228
parentsys-block/perccli: use secureboot.eclass to sign efi exec (diff)
downloadgentoo-a1f3d15c88e4a9a462fa04fba9602726b817d6b0.tar.gz
gentoo-a1f3d15c88e4a9a462fa04fba9602726b817d6b0.tar.bz2
gentoo-a1f3d15c88e4a9a462fa04fba9602726b817d6b0.zip
sys-block/sas3flash: use secureboot.eclass to sign efi exec
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r--sys-block/sas3flash/sas3flash-16.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-block/sas3flash/sas3flash-16.ebuild b/sys-block/sas3flash/sas3flash-16.ebuild
index b1179691af24..94f85c44952a 100644
--- a/sys-block/sas3flash/sas3flash-16.ebuild
+++ b/sys-block/sas3flash/sas3flash-16.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit mount-boot
+inherit mount-boot secureboot
DESCRIPTION="Flash utility for LSI MPT-SAS3 controller"
HOMEPAGE="https://www.broadcom.com/products/storage/host-bus-adapters/sas-9300-8e#downloads"
@@ -47,6 +47,10 @@ pkg_nofetch() {
einfo "${SRC_URI}"
}
+pkg_setup() {
+ use efi && secureboot_pkg_setup
+}
+
supportedcards() {
elog "This binary supports should support ALL cards, including, but not"
elog "limited to the following series:"
@@ -88,6 +92,7 @@ src_install() {
if use amd64; then
doexe Installer_P"${PV}"_for_UEFI/sas3flash_udk_uefi_x64_rel/sas3flash.efi
fi
+ secureboot_auto_sign --in-place
fi
default