package/rpi-firmware: select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT when needed
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 16 May 2020 14:02:20 +0000 (16:02 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 16 May 2020 19:39:52 +0000 (21:39 +0200)
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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/rpi-firmware/Config.in

index 7cebc5e7ca92a473ec8ca9a478dbf10db7f5da27..cced53f017266a2452a25e7cede1e33faa74f6ed 100644 (file)
@@ -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