diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-20 13:07:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-20 13:07:51 +0100 |
commit | 30114ae8ef07a32fea1e44a10b61f98c84142645 (patch) | |
tree | 1f5829906b913ee4637e04254cc50ffc1faab519 /eclass/kernel-build.eclass | |
parent | aaa44376d7162304219748a3b6771d9a26fc80fe (diff) |
gentoo auto-resync : 20:07:2023 - 13:07:51
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 0c8eaf3c1cd5..ff615a02d0eb 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -29,6 +29,11 @@ if [[ ! ${_KERNEL_BUILD_ECLASS} ]]; then _KERNEL_BUILD_ECLASS=1 PYTHON_COMPAT=( python3_{10..12} ) +if [[ ${KERNEL_IUSE_MODULES_SIGN} ]]; then + # If we have enabled module signing IUSE + # then we can also enable secureboot IUSE + KERNEL_IUSE_SECUREBOOT=1 +fi inherit multiprocessing python-any-r1 savedconfig toolchain-funcs kernel-install @@ -86,8 +91,19 @@ IUSE="+strip" if [[ ${KERNEL_IUSE_MODULES_SIGN} ]]; then IUSE+=" modules-sign" + REQUIRED_USE="secureboot? ( modules-sign )" fi +# @FUNCTION: kernel-build_pkg_setup +# @DESCRIPTION: +# Call python-any-r1 and secureboot pkg_setup +kernel-build_pkg_setup() { + python-any-r1_pkg_setup + if [[ ${KERNEL_IUSE_MODULES_SIGN} ]]; then + secureboot_pkg_setup + fi +} + # @FUNCTION: kernel-build_src_configure # @DESCRIPTION: # Prepare the toolchain for building the kernel, get the default .config @@ -395,4 +411,4 @@ kernel-build_merge_configs() { fi -EXPORT_FUNCTIONS src_configure src_compile src_test src_install pkg_postinst +EXPORT_FUNCTIONS pkg_setup src_configure src_compile src_test src_install pkg_postinst |