mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v3 1/5] kernel: make sure that kbuild can extract keys from the HSM
@ 2021-09-12 20:59 Roland Hieber
  2021-09-12 20:59 ` [ptxdist] [PATCH v3 2/5] ptxd_lib_code_signing: return success in case of ERROR_CA_NOT_YET_SET Roland Hieber
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Roland Hieber @ 2021-09-12 20:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

CODE_SIGNING_ENV provides the config files and the PKCS11 engine for
OpenSSL and SoftHSM, which kbuild calls when signing the kernel modules.

Fixes: 3ffb3585dd13de9e20d1 (2021-07-23, "kernel: add support for module signing")
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
PATCH v3:
 - new in v3, and yet another case of "how did this ever work before?"
---
 rules/kernel.make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rules/kernel.make b/rules/kernel.make
index 9caff677918e..7a4642f3d07f 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -187,6 +187,9 @@ $(STATEDIR)/kernel.tags:
 # Compile
 # ----------------------------------------------------------------------------
 
+KERNEL_MAKE_ENV		+= \
+	$(CODE_SIGNING_ENV)
+
 KERNEL_MAKE_OPT		= \
 	$(call kernel/deprecated, KERNEL_MAKE_OPT) \
 	$(KERNEL_SHARED_OPT) \
@@ -254,6 +257,9 @@ endif
 # Install
 # ----------------------------------------------------------------------------
 
+KERNEL_INSTALL_ENV	+= \
+	$(CODE_SIGNING_ENV)
+
 KERNEL_INSTALL_OPT = \
 	$(KERNEL_BASE_OPT) \
 	modules_install
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-29 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12 20:59 [ptxdist] [PATCH v3 1/5] kernel: make sure that kbuild can extract keys from the HSM Roland Hieber
2021-09-12 20:59 ` [ptxdist] [PATCH v3 2/5] ptxd_lib_code_signing: return success in case of ERROR_CA_NOT_YET_SET Roland Hieber
2021-09-12 20:59 ` [ptxdist] [PATCH v3 3/5] libptxdist: introduce ptxd_exec_silent_stderr Roland Hieber
2021-09-12 20:59 ` [ptxdist] [PATCH v3 4/5] ptxd_lib_code_signing: provide consumer functions with some environment Roland Hieber
2021-09-12 20:59 ` [ptxdist] [PATCH v3 5/5] ptxd_lib_code_signing: add key whitelist checks Roland Hieber
2021-09-29 12:08   ` Michael Olbrich
2021-09-29 11:54 ` [ptxdist] [PATCH v3 1/5] kernel: make sure that kbuild can extract keys from the HSM Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox