[yocto] [meta-raspberrypi] How to modify KERNEL_DEVICETREE?

Andrei Gherzan andrei at gherzan.ro
Thu Dec 21 07:50:22 PST 2017


Hi,

You need to make that variable available in both sdcard generation code
which resides in the image recipe and in the kernel recipe. You can do this
by modifying that variable from local.conf (distro would work too I think
but it doesn't sounds like the right place to be).

--
Andrei Gherzan

On Sun, Dec 17, 2017 at 6:36 PM, Drew Moseley <drew at moseleynet.net> wrote:

> I'm trying to figure out how to properly modify the KERNEL_DEVICETREE
> variable.  It seems that the meta-raspberrypi layer uses that variable
> in the sdcard_image-rpi.bbclass and defines it in the machine conf
> layer.  In poky, the variable is set and appended to in the various
> linux-yocto recipes. If I make a similar change in a linux-raspberrypi
> bbappend file, it works fine for the build of the linux-raspberrypi
> recipe but when it is trying to package up the rpi-sdimg file, the
> changes from the kernel recipe are not available and generally the build
> will fail since the files expected during the image creation will not
> have been created during the kernel build.
>
> I can envision several different workarounds here but I'm struggling to
> come up with a solid fix. Does anyone have any suggestions?
>
> It also looks like the meta-freescale layer will have a similar issue.
>
> Drew
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171221/c5271a56/attachment.html>


More information about the yocto mailing list