[oe-commits] [openembedded-core] 52/65: kernel.bbclass: include signing keys when copying files required for module builds

git at git.openembedded.org git at git.openembedded.org
Thu Sep 1 21:33:02 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 2dfbf89d67d4e012c0e8729540eda311633c33df
Author: Mattias Waldo <mattias.waldo at gmail.com>
AuthorDate: Thu Sep 1 16:36:25 2016 +0200

    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.
    
    Signed-off-by: Mattias Waldo <mattias.waldo at saabgroup.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/kernel.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 023e308..d6a0ca8 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -360,6 +360,14 @@ 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
+		# The signing_key.* files are stored in the certs/ dir in
+		# newer Linux kernels
+		mkdir -p $kerneldir/certs
+		cp certs/signing_key.* $kerneldir/certs/
+	elif [ -e signing_key.priv ]; then
+		cp signing_key.* $kerneldir/
+	fi
 
 	# We can also copy over all the generated files and avoid special cases
 	# like version.h, but we've opted to keep this small until file creep starts

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list