Hi @mkock !
I just tested the approach shown in the article Custom meta layers, recipes and images in Yocto Project (hello-world examples) | Toradex Developer Center, specifically the creation of the <machine>-extra.conf
in the custom layer.
By doing this:
# meta-custom/conf/machine/apalis-imx6-extra.conf
KERNEL_DEVICETREE = "xablau.dtb"
I got the same result as you:
user@oe/build$ bitbake tdx-reference-minimal-image -e | grep "^KERNEL_DEVICETREE="
KERNEL_DEVICETREE="xablau.dtb imx6q-apalis-ixora-v1.2.dtb imx6q-apalis-eval.dtb imx6q-apalis-ixora.dtb imx6q-apalis-ixora-v1.1.dtb"
But, if I use the machine override:
# meta-custom/conf/machine/apalis-imx6-extra.conf
KERNEL_DEVICETREE:apalis-imx6 = "xablau.dtb"
I get the desired result:
user@oe/build$ bitbake tdx-reference-minimal-image -e | grep "^KERNEL_DEVICETREE="
KERNEL_DEVICETREE="xablau.dtb"
Hopefully, this solves your issue
I actually need to study more to directly answer this question
But I am sure the answer is in plain text in OpenEmbedded’s / Bitbake’s (huge) documentation
Best regards,