[SRU][J][PATCH 6/6] UBUNTU: SAUCE: Switch to using debian/scripts/sign-module
Juerg Haefliger
juerg.haefliger at canonical.com
Thu Dec 15 07:27:08 UTC 2022
BugLink: https://bugs.launchpad.net/bugs/1642368
Use the new script debian/scripts/sign-module to determine if a modules
needs to be signed.
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
Signed-off-by: Andrea Righi <andrea.righi at canonical.com>
(backported from commit 13936fc24daeacee95346171ab8a28989f14c33a kinetic:linux)
[juergh: Adjust for missing $(sig-key) variable.]
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
scripts/Makefile.modinst | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
index be46537e4cc8..a538b07317b2 100644
--- a/scripts/Makefile.modinst
+++ b/scripts/Makefile.modinst
@@ -67,12 +67,9 @@ endif
#
ifeq ($(CONFIG_MODULE_SIG_ALL),y)
quiet_cmd_sign = SIGN $@
-$(eval $(call config_filename,MODULE_SIG_KEY))
- cmd_sign = if echo "$@" | grep -qF "/drivers/staging/" && \
- test -f $(srctree)/debian/signature-inclusion && \
- ! grep -qFx "$(notdir $@)" $(srctree)/debian/signature-inclusion ; \
- then echo "UBUNTU: Not signing $@" ; \
- else scripts/sign-file $(CONFIG_MODULE_SIG_HASH) $(MODULE_SIG_KEY_SRCPREFIX)$(CONFIG_MODULE_SIG_KEY) certs/signing_key.x509 $@ \
+ cmd_sign = if test -e $(srctree)/debian/scripts/sign-module && \
+ $(srctree)/debian/scripts/sign-module $@ ; \
+ then scripts/sign-file $(CONFIG_MODULE_SIG_HASH) $(MODULE_SIG_KEY_SRCPREFIX)$(CONFIG_MODULE_SIG_KEY) certs/signing_key.x509 $@ \
$(if $(KBUILD_EXTMOD),|| true) ; \
fi
else
--
2.34.1
More information about the kernel-team
mailing list