diff options
author | Mattias Waldo <mattias.waldo@gmail.com> | 2016-09-01 16:36:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:54 +0100 |
commit | 104eb5794aa94b3c67f006cd9fdb49dd2b67aab9 (patch) | |
tree | 27429cd69f147ab88df99e3060e35a6f5c11a7f7 /meta/classes/kernel.bbclass | |
parent | 0e38688bca3bc52bd95181eb05370d452c447dc7 (diff) | |
download | poky-104eb5794aa94b3c67f006cd9fdb49dd2b67aab9.tar.gz |
kernel.bbclass: include signing keys when copying files required for module builds
The absence of signing_key.* in $kerneldir made signing of
out-of-tree kernel modules fail (silently). Add copying of these
files during the shared_workdir task.
(From OE-Core rev: 7aadc91b5ef86a89a827d59bd19e7b8272a5dd66)
Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 023e308869..d6a0ca8504 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -360,6 +360,14 @@ do_shared_workdir () { | |||
360 | cp .config $kerneldir/ | 360 | cp .config $kerneldir/ |
361 | mkdir -p $kerneldir/include/config | 361 | mkdir -p $kerneldir/include/config |
362 | cp include/config/kernel.release $kerneldir/include/config/kernel.release | 362 | cp include/config/kernel.release $kerneldir/include/config/kernel.release |
363 | if [ -e certs/signing_key.pem ]; then | ||
364 | # The signing_key.* files are stored in the certs/ dir in | ||
365 | # newer Linux kernels | ||
366 | mkdir -p $kerneldir/certs | ||
367 | cp certs/signing_key.* $kerneldir/certs/ | ||
368 | elif [ -e signing_key.priv ]; then | ||
369 | cp signing_key.* $kerneldir/ | ||
370 | fi | ||
363 | 371 | ||
364 | # We can also copy over all the generated files and avoid special cases | 372 | # We can also copy over all the generated files and avoid special cases |
365 | # like version.h, but we've opted to keep this small until file creep starts | 373 | # like version.h, but we've opted to keep this small until file creep starts |