@@ -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