I’ve added my own custom layer to oe-core. My image recipe is based on (in fact, almost identical to) meta-toradex/recipes/console-trdx-image.bb.
I’ve written the patch to add my own device tree to the kernel source and added it to my kernel recipe as suggested in your answer. I’ve checked and it is being added to build/out-glibc/work-shared/colibri-vf/kernel-source/arch/arm/boot/dts/.
I’ve copied stuff/meta-toradex/conf/machine/colibri-vf.conf to my layer and changed the KERNEL_DEVICETREE variable. Got no errors when using bitbake to build my image. After the image was built, I unpacked it and changed KERNEL_DEVICETREE in the update.sh script accordingly.
However, when I run the script it doesn’t find my dtb file:
Did not find the devicetrees from KERNEL_DEVICETREE, vf610-colibri-mycarrier-r3.dtb. Aborting.
Seems that my conf/machine/colibri-vf.conf file is being ignored. Any ideas of what I’m doing wrong ?