Openembedded Core Discussions
 help / color / mirror / Atom feed
* rebuilding external kernel modules when kernel changed
@ 2016-06-21 14:36 Pascal Bach
  2016-06-21 14:40 ` Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal Bach @ 2016-06-21 14:36 UTC (permalink / raw)
  To: openembedded-core

Hello

I ran into an issue when working with kernel modules that are not part of the kernel source tree.

The issue manifests itself as follows:

1. Build an image containing virtual/kernel and kernel-module-a

2. Do a `bitbake virtual/kernel -c clean`

3. Rebuild the above image again. This causes the kernel do rebuild and it seems that the do_compile task of kernel-module-a is also re-exectued.
But this causes an error as there is some configuration missing in the kernel source directory that is created by module.bbclass:do_make_scripts.
I think that the issue is that the do_make_scripts task is not re-executed prior to the modules do_compile task.


I tried to teach bitbake to execute do_make_scripts too once the kernel was rebuilt, but I didn't find a way.

Any hints how this can be done?

Regards
Pascal



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

* Re: rebuilding external kernel modules when kernel changed
  2016-06-21 14:36 rebuilding external kernel modules when kernel changed Pascal Bach
@ 2016-06-21 14:40 ` Martin Jansa
  2016-06-21 15:21   ` Pascal Bach
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2016-06-21 14:40 UTC (permalink / raw)
  To: Pascal Bach; +Cc: openembedded-core

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

On Tue, Jun 21, 2016 at 04:36:32PM +0200, Pascal Bach wrote:
> Hello
> 
> I ran into an issue when working with kernel modules that are not part of the kernel source tree.
> 
> The issue manifests itself as follows:
> 
> 1. Build an image containing virtual/kernel and kernel-module-a
> 
> 2. Do a `bitbake virtual/kernel -c clean`
> 
> 3. Rebuild the above image again. This causes the kernel do rebuild and it seems that the do_compile task of kernel-module-a is also re-exectued.
> But this causes an error as there is some configuration missing in the kernel source directory that is created by module.bbclass:do_make_scripts.
> I think that the issue is that the do_make_scripts task is not re-executed prior to the modules do_compile task.
> 
> 
> I tried to teach bitbake to execute do_make_scripts too once the kernel was rebuilt, but I didn't find a way.
> 
> Any hints how this can be done?

What version are you using?

Are you using rm_work?

Check https://bugzilla.yoctoproject.org/show_bug.cgi?id=9352 
> 
> Regards
> Pascal
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]

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

* Re: rebuilding external kernel modules when kernel changed
  2016-06-21 14:40 ` Martin Jansa
@ 2016-06-21 15:21   ` Pascal Bach
  0 siblings, 0 replies; 3+ messages in thread
From: Pascal Bach @ 2016-06-21 15:21 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core


> What version are you using?
I'm using poky, the latest krogoth branch
> Are you using rm_work?
No rm_work is not used.
>
> Check https://bugzilla.yoctoproject.org/show_bug.cgi?id=9352 
I think the issue is relate but not the same. For me the simplest solution i found was to make sure do_make_scripts of any kernel module was executed after the kernel was rebuilt.
But I didn't find a way to make bitbake do this automatically.



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

end of thread, other threads:[~2016-06-21 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21 14:36 rebuilding external kernel modules when kernel changed Pascal Bach
2016-06-21 14:40 ` Martin Jansa
2016-06-21 15:21   ` Pascal Bach

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