]> git.baikalelectronics.ru Git - kernel.git/commit
certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 20 Jan 2022 19:22:05 +0000 (04:22 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jan 2022 15:08:44 +0000 (00:08 +0900)
commitdb7abe134734fdc4d19f94a1df7613e441c9ce04
treec869f79e5e83ff8861e095672c81470938639119
parente50336efb7739301112d874c418dc75d6b248b0d
certs: Fix build error when CONFIG_MODULE_SIG_KEY is empty

Since 179d611375f8 ("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/20220120094606.2skuyb26yjlnu66q@lion.mk-sys.cz/T/#u
Fixes: 179d611375f8 ("certs: simplify $(srctree)/ handling and remove config_filename macro")
Reported-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Michal Kubecek <mkubecek@suse.cz>
certs/Makefile