From: Dmitry Eremin-Solenikov Date: Tue, 29 Oct 2019 09:47:14 +0000 (+0100) Subject: kernel.bbclass: fix installation of modules signing certificates X-Git-Tag: 2019-04.2-warrior~19 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6ab0206b8252755367f2357f49007dd78336fec0;p=openembedded-core.git kernel.bbclass: fix installation of modules signing certificates If one has provided external key/certificate for modules signing, Kbuild will skip creating signing_key.pem and will write only signing_key.x509 certificate. Thus we have to check for .x509 file existence rather than .pem one. Signed-off-by: Dmitry Eremin-Solenikov Signed-off-by: Richard Purdie (cherry picked from commit 2527e731eba43bd36d0ea268aca6b03155376134) Signed-off-by: Nicolas Dechesne Signed-off-by: Armin Kuster Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 111a0b2eeb..fb1f49327c 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -453,7 +453,7 @@ do_shared_workdir () { cp .config $kerneldir/ mkdir -p $kerneldir/include/config cp include/config/kernel.release $kerneldir/include/config/kernel.release - if [ -e certs/signing_key.pem ]; then + if [ -e certs/signing_key.x509 ]; then # The signing_key.* files are stored in the certs/ dir in # newer Linux kernels mkdir -p $kerneldir/certs