package/rpi-firmware: select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT when needed
commit: https://git.buildroot.net/buildroot/commit/?id=37c425cf2ceeec6b28efbc1120c52a43d3212bb3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x
When BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS is enabled, and the DTBs are built by Linux (i.e BR2_LINUX_KERNEL_DTS_SUPPORT is enabled), these DTBs should be built with the -@ Device Tree compiler option, so that they can be used together with DTB overlays. So let's select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT in this situation.
Fixes:
https://bugs.busybox.net/show_bug.cgi?id=12831
Signed-off-by Thomas Petazzoni <[email protected]>
Signed-off-by Yann E. MORIN <[email protected]>
(cherry picked from commit 9fd1d4fec1c88f9f3f4e41f9b6dc8a740538217b)
Signed-off-by Peter Korsgaard <[email protected]>
--- package/rpi-firmware/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/rpi-firmware/Config.in +2 -0
@@ -85,6 +85,8 @@ config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS default y depends on BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS \ || BR2_LINUX_KERNEL_DTS_SUPPORT + select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT \ + if BR2_LINUX_KERNEL_DTS_SUPPORT help Say 'y' here if you need to load one or more of the DTB overlays, to support HATs (Hardware Attached on Top, add-on