summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>2019-07-28 13:01:03 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-31 13:50:46 +0100
commit1b5bd0bceb2b2b0d140edd6412eafaba105c8083 (patch)
tree6d800eb47a8cc24e5690f1965d4f124a9a7a2a89 /meta
parentcfb190a3c9771b382d994702a6e74bb662bf6a8c (diff)
downloadpoky-1b5bd0bceb2b2b0d140edd6412eafaba105c8083.tar.gz
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. (From OE-Core rev: 2527e731eba43bd36d0ea268aca6b03155376134) Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a60e15b578..bf3674238f 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -454,7 +454,7 @@ do_shared_workdir () {
454 cp .config $kerneldir/ 454 cp .config $kerneldir/
455 mkdir -p $kerneldir/include/config 455 mkdir -p $kerneldir/include/config
456 cp include/config/kernel.release $kerneldir/include/config/kernel.release 456 cp include/config/kernel.release $kerneldir/include/config/kernel.release
457 if [ -e certs/signing_key.pem ]; then 457 if [ -e certs/signing_key.x509 ]; then
458 # The signing_key.* files are stored in the certs/ dir in 458 # The signing_key.* files are stored in the certs/ dir in
459 # newer Linux kernels 459 # newer Linux kernels
460 mkdir -p $kerneldir/certs 460 mkdir -p $kerneldir/certs