All of lore.kernel.org
 help / color / mirror / Atom feed
* module do_configure depends on kernel .config and headers
@ 2016-04-15 16:02 Vajzovic, Tom
  2016-04-15 17:14 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Vajzovic, Tom @ 2016-04-15 16:02 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hi,

I am using a meta layer provided by a SOM manufacturer.  They have a recipe which sets:

inherit module

export KLIB_BUILD="${STAGING_KERNEL_DIR}"
export KLIB="${D}"

and then its do_configure script calls make, and the Makefile expects $(KLIB_BUILD)/.config to exist, and the kernel headers to be in the same place.

This sometimes succeeds and sometimes fails, which I presume is to do with the order that the other entries in the run-queue are executed.

I thought that this might be because the dependency on the kernel .config and headers is not correctly recorded in the recipe.

I added a .bbappend file to the recipe in my own layer which contains:

do_configure[depends] += "virtual/kernel:do_shared_workdir"

But this has not resolved the problem.  I have used bitbake-layers to verify that my bbappend is being applied.

So my questions are:

Is $(KLIB_BUILD) the correct place to look for the kernel .config and headers?

What is the correct way to record the dependency in the recipe?

Why isn't this done in module.bbclass?  Wouldn't all modules depend on the kernel headers?

Thanks,
Tom


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

end of thread, other threads:[~2016-04-19 17:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-15 16:02 module do_configure depends on kernel .config and headers Vajzovic, Tom
2016-04-15 17:14 ` Bruce Ashfield
2016-04-18 10:16   ` Vajzovic, Tom
2016-04-19 17:45     ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.