make[2]: *** No rule to make target 'include/config/module/sig.h', needed by 'kernel/x509_certificate_list'.
A message that is not in the archive (sent off-list or not yet received): 201507111453.UmZUWGdU%[email protected]
Quoted 11 lines · kbuild test robot
tree:
git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux
-fs modsign-pkcs7head: 3f53b7ecb20662175ab055aed442680da0822f35 commit: 9466a1e2643a5a532054151b0cd494b5bbd07d1d [15/20] modsign: Addexplicit
CONFIG_SYSTEM_TRUSTED_KEYSoption
config: x86_64-rhel (attached as .config) reproduce:
git checkout9466a1e2643a5a532054151b0cd494b5bbd07d1d# save the attached .config to linux build tree make ARCH=x86_64
Quoted 6 lines
All error/warnings (new ones prefixed by >>):
Quoted 3 lines
Quoted 3 lines
make[2]: *** No rule to make target
'include/config/module/sig.h', needed by
'kernel/x509_certificate_list'.make[2]: Target '
__build' not remade because of errors.
Hm, why doesn't include/config/module/sig.h exist? I thought it should always exist if the option is visible in .config (even if it's disabled).
This probably fixes it, as long as we can still trust the dependency to actually work in all interesting cases of config changes...
kernel/Makefile +1 -1
@@ -180,7 +180,7 @@ quiet_cmd_x509certs = CERTS $(SIGNING_X509-y) $(patsubst "%",%,$(2)) awk '/-----BEGIN CERTIFICATE-----/{flag=1;next}/-----END CERTIFICATE-----/{flag=0}flag' $(2) /dev/null | base64 -d ) > $@ || ( rm $@; exit 1) targets += $(obj)/x509_certificate_list -$(obj)/x509_certificate_list: $(SIGNING_X509-y) include/config/system/trusted/keys.h include/config/module/sig.h $(SYSTEM_TRUSTED_KEYS_SRCPREFIX)$(SYSTEM_TRUSTED_KEYS_FILENAME) +$(obj)/x509_certificate_list: $(SIGNING_X509-y) include/config/system/trusted/keys.h $(wildcard include/config/module/sig.h) $(SYSTEM_TRUSTED_KEYS_SRCPREFIX)$(SYSTEM_TRUSTED_KEYS_FILENAME) $(call if_changed,x509certs,$(SYSTEM_TRUSTED_KEYS_SRCPREFIX)$(CONFIG_SYSTEM_TRUSTED_KEYS)) endif
Signature · 2 lines
David Woodhouse Open Source Technology Centre [email protected] Intel Corporation