]> git.baikalelectronics.ru Git - kernel.git/commitdiff
certs: Fix build error when CONFIG_MODULE_SIG_KEY is PKCS#11 URI
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 20 Jan 2022 19:22:04 +0000 (04:22 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jan 2022 15:00:14 +0000 (00:00 +0900)
When CONFIG_MODULE_SIG_KEY is PKCS#11 URL (pkcs11:*), signing_key.x509
fails to build:

  certs/Makefile:77: *** target pattern contains no '%'.  Stop.

Due to the typo, $(X509_DEP) contains a colon.

Fix it.

Fixes: 179d611375f8 ("certs: simplify $(srctree)/ handling and remove config_filename macro")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
certs/Makefile

index f7041c29a2e0eef0ff6006a5a7db2551b87529a4..0c459cfd09dfda762648bb41f6bf0d0bd9c615f4 100644 (file)
@@ -68,7 +68,7 @@ $(obj)/x509.genkey:
 endif # CONFIG_MODULE_SIG_KEY
 
 # If CONFIG_MODULE_SIG_KEY isn't a PKCS#11 URI, depend on it
-ifneq ($(filter-out pkcs11:%, %(CONFIG_MODULE_SIG_KEY)),)
+ifneq ($(filter-out pkcs11:%, $(CONFIG_MODULE_SIG_KEY)),)
 X509_DEP := $(CONFIG_MODULE_SIG_KEY)
 endif