public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v4] kernel.bbclass: include signing keys when copying files required for module builds
@ 2016-08-26 18:58 Mattias Waldo
  2016-08-30 22:45 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Mattias Waldo @ 2016-08-26 18:58 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
---
 meta/classes/kernel.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index db42744..07761e7 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v4] kernel.bbclass: include signing keys when copying files required for module builds
  2016-08-26 18:58 [PATCH v4] kernel.bbclass: include signing keys when copying files required for module builds Mattias Waldo
@ 2016-08-30 22:45 ` Richard Purdie
  2016-09-01 14:40   ` Mattias Waldo
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2016-08-30 22:45 UTC (permalink / raw)
  To: Mattias Waldo, openembedded-core

On Fri, 2016-08-26 at 20:58 +0200, Mattias Waldo 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.
> 
> Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
> ---
>  meta/classes/kernel.bbclass | 2 ++
>  1 file changed, 2 insertions(+)

Sadly this breaks the build when you don't have any keys:

e.g.: https://autobuilder.yoctoproject.org/main/builders/build-applianc
e/builds/892/steps/BuildImages_1/logs/stdio

but there were many many other failures :(

Cheers,

Richard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v4] kernel.bbclass: include signing keys when copying files required for module builds
  2016-08-30 22:45 ` Richard Purdie
@ 2016-09-01 14:40   ` Mattias Waldo
  0 siblings, 0 replies; 3+ messages in thread
From: Mattias Waldo @ 2016-09-01 14:40 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Hi!

I just submitted version 5 of the patch, which hopefully doesn't break the
build. In addition it should handle both 4.1 and 4.4 versions of the Linux
kernel, which use different locations for their signing key files.

Regards,

Mattias

On Wed, Aug 31, 2016 at 12:45 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Fri, 2016-08-26 at 20:58 +0200, Mattias Waldo 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.
> >
> > Signed-off-by: Mattias Waldo <mattias.waldo@saabgroup.com>
> > ---
> >  meta/classes/kernel.bbclass | 2 ++
> >  1 file changed, 2 insertions(+)
>
> Sadly this breaks the build when you don't have any keys:
>
> e.g.: https://autobuilder.yoctoproject.org/main/builders/build-applianc
> e/builds/892/steps/BuildImages_1/logs/stdio
>
> but there were many many other failures :(
>
> Cheers,
>
> Richard
>

[-- Attachment #2: Type: text/html, Size: 1672 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-01 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-26 18:58 [PATCH v4] kernel.bbclass: include signing keys when copying files required for module builds Mattias Waldo
2016-08-30 22:45 ` Richard Purdie
2016-09-01 14:40   ` Mattias Waldo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox