Re: KERNEL_DEVICETREE cannot be appended?

Alexandre Belloni


On 22/03/2022 17:10:10+0000, Matthias Klein wrote:

I am trying to add a device tree in a yocto based on the meta-raspberrypi layer.
Adding the device tree via a patch in a bbapend of the kernel recipe is no problem.

But all attempts to add the file in the local.conf of the variable KERNEL_DEVICETREE replace all other device trees.
I.e. on the device is then only my new file. It seems that the "append" works like a "="?

#KERNEL_DEVICETREE:raspberrypi3-64:append = " broadcom/my-custom-tree.dtb"
KERNEL_DEVICETREE:raspberrypi3-64 += " broadcom/my-custom-tree.dtb"

Is there any way to add the device tree?
Did you try RPI_KERNEL_DEVICETREE:append?

Whatt is happening here is that KERNEL_DEVICETREE is set like that in


You are creating KERNEL_DEVICETREE:raspberrypi3-64 which is more
specific than KERNEL_DEVICETREE and so the default content of
KERNEL_DEVICETREE is dropped and replaced by the value of

Preferably without having to create a custom machine for it?
You should probably create a new machine, it is a bad practice to change
KERNEL_DEVICETREE from local.conf

Best regards,

Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering

Join { to automatically receive all group messages.