certs: include certs/signing_key.x509 unconditionally
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 18 Feb 2022 04:46:33 +0000 (13:46 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 2 Mar 2022 23:16:19 +0000 (08:16 +0900)
commit6ce019f73d52513239314e75376a5ca622aa3632
treed54854bb6f18328f11c897196cfec89e6c3762b6
parentd4c858643263cfde13f7d937eaff95c2ed87cdf1
certs: include certs/signing_key.x509 unconditionally

I do not see much sense in the #if conditional in system_certificates.S;
even if the condition is true, there exists no signing key when
CONFIG_MODULE_SIG_KEY="".

So, certs/Makefile generates empty certs/signing_key.x509 in such a
case. We can always do this, irrespective of CONFIG_MODULE_SIG or
(CONFIG_IMA_APPRAISE_MODSIG && CONFIG_MODULES).

We only need to check CONFIG_MODULE_SIG_KEY, then both *.S and Makefile
will become much simpler.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
certs/Makefile
certs/system_certificates.S