]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: fix installation of modules signing certificates
authorDmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
Tue, 29 Oct 2019 09:47:14 +0000 (10:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Oct 2019 13:47:04 +0000 (13:47 +0000)
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 <dmitry_eremin-solenikov@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2527e731eba43bd36d0ea268aca6b03155376134)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 111a0b2eebb2386c817538b414ff745e0d38f0cf..fb1f49327c88238fdc5b3cd69235020e47005d43 100644 (file)
@@ -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