This patch is taken from [1], topic/overlays branch. U-Boot overlay feature requires the base dtb to be built with symbols. So build the dtbs with symbols when overlay support (CONFIG_OF_OVERLAY) is enabled. [1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> --- Replacement for "ARM: DT: Enable symbols when CONFIG_OF_OVERLAY is used". Change-Id: I2bf3d7f5069af34a9ebd015b73ad52a3442d541a Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/292877 ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Reviewed-by: Alexandre TORGUE <alexandre.torgue@foss.st.com> Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com> Tested-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com> Domain-Review: Amelie DELAUNAY <amelie.delaunay@foss.st.com>