Skip to contentSkip to conversation

kernel.bbclass: include signing keys when copying files required for module builds

PATCH In review Waldo Mattias 2 participants 2 messages Aug 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 kernel.bbclass: include signing keys when copying files required for module builds

The absence of certs/signing_key.* in $kerneldir made signing of out-of-tree kernel modules fail (silently). Add copying of these files during the shared_workdir task.

---
 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/kernel.bbclass +2 -0
index db42744..07761e7 100644
@@ -364,6 +364,8 @@ do_shared_workdir () {
        cp .config $kerneldir/
        mkdir -p $kerneldir/include/config
        cp include/config/kernel.release $kerneldir/include/config/kernel.release
+       mkdir -p $kerneldir/certs
+       cp certs/signing_key.* $kerneldir/certs
 
        # 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

--
2.9.3

Acked-by on v3 1/1
#1 lore raw

On Thu, Aug 25, 2016 at 11:13 AM, Waldo Mattias <[email protected]

Quoted 6 lines

wrote:

The absence of certs/signing_key.* in $kerneldir made signing of out-of-tree kernel modules fail (silently). Add copying of these files during the shared_workdir task.

I had been pinged on one of the earlier revisions of this, and I can say that this looks
fine to me.

Bruce

Quoted 33 lines
---
 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/kernel.bbclass +0 -0
index db42744..07761e7 100644
@@ -364,6 +364,8 @@ do_shared_workdir () {
        cp .config $kerneldir/
        mkdir -p $kerneldir/include/config
        cp include/config/kernel.release $kerneldir/include/config/

kernel.release

meta/classes/kernel.bbclass +2 -0
+       mkdir -p $kerneldir/certs
+       cp certs/signing_key.* $kerneldir/certs
 
        # 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
--
2.9.3

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"