All of lore.kernel.org
 help / color / mirror / Atom feed
* Using kernel device tree when compiling U-Boot
@ 2019-11-25 15:34 Mike Crowe
  0 siblings, 0 replies; only message in thread
From: Mike Crowe @ 2019-11-25 15:34 UTC (permalink / raw)
  To: OE-core

I'd like to use a single set of device tree sources for both the kernel and
U-Boot. I'd like to take the dtb files generated when compiling the kernel
and use it for U-Boot. This means that I need to able to find them from the
U-Boot recipe - ideally without having a list of them there.

So, I thought that I'd teach my kernel recipe to install the device trees
in the sysroot. I ought to be able to do this by adding

  SYSROOT_DIRS +="/boot"

to my kernel recipe. Unfortunately, kernel.bbclass contains:

 # We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware
 sysroot_stage_all () {
         :
 }

which stops this being effective. This code predates
80e7e7f78d957b8159bede2a5cd5614d8d73039c. Would it now be more appropriate
to influence staging.bbclass's behaviour by setting SYSROOT_DIRS_BLACKLIST
to fix the mentioned clashes? Perhaps the invention of recipe-specific
sysroots might mean that these clashes no longer occur?

The device tree dtb files are published to the deploy directory. I could
try to grab them from there, but even apart from having to deal with the
symlinks, it doesn't feel quite right to do so.

Or perhaps I've missed a much simpler way to solve this problem.

Thanks.

Mike.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-25 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 15:34 Using kernel device tree when compiling U-Boot Mike Crowe

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.