Skip to content

Commit e6340b6

Browse files
committed
certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty
Since b8c96a6 ("certs: simplify $(srctree)/ handling and remove config_filename macro"), when CONFIG_MODULE_SIG_KEY is empty, signing_key.x509 fails to build: CERT certs/signing_key.x509 Usage: extract-cert <source> <dest> make[1]: *** [certs/Makefile:78: certs/signing_key.x509] Error 2 make: *** [Makefile:1831: certs] Error 2 Pass "" to the first argument of extract-cert to fix the build error. Link: https://lore.kernel.org/linux-kbuild/[email protected]/T/#u Fixes: b8c96a6 ("certs: simplify $(srctree)/ handling and remove config_filename macro") Reported-by: Michal Kubecek <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Tested-by: Michal Kubecek <[email protected]>
1 parent ad29a2f commit e6340b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

certs/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ endif
7575
$(obj)/system_certificates.o: $(obj)/signing_key.x509
7676

7777
$(obj)/signing_key.x509: $(X509_DEP) $(obj)/extract-cert FORCE
78-
$(call if_changed,extract_certs,$(if $(X509_DEP),$<,$(CONFIG_MODULE_SIG_KEY)))
78+
$(call if_changed,extract_certs,$(if $(CONFIG_MODULE_SIG_KEY),$(if $(X509_DEP),$<,$(CONFIG_MODULE_SIG_KEY)),""))
7979
endif # CONFIG_MODULE_SIG
8080

8181
targets += signing_key.x509

0 commit comments

Comments
 (0)