buildrootdevice-tree

How does buildroot select dts for compilation?


I have a Mango Pi Mq Quad, which uses the following overlay: https://github.com/readysloth/mangopi-buildroot-overlay. I have successfully built with the help of this overlay. However, now it is interesting to me -- how did the buildroot choose what dts to use? The board support "package" does not mention anything related.. Thanks for hints/full answers!

P. S. dts and dtb are different things. Basically my question is how does buildroot select dts to compile so that we have dtb as a result.


Solution

  • BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=sun50i-h616-orangepi-zero2"

    So turns out the overlay is intended to work in the following way:

    1. It first builds the dtb from Orange Pi dts.
    2. It then copies the resulting dtb to some place and the loads Linux using this dtb.