]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile.lib: Build all DTS with -@ if OF_LIBFDT_OVERLAY is enabled
authorMichal Simek <michal.simek@xilinx.com>
Wed, 22 Jul 2020 12:58:25 +0000 (14:58 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 5 Aug 2020 03:30:02 +0000 (23:30 -0400)
The commit 47818e23a228 ("Makefile.lib: include /__symbols__ in dtb if
SPL_LOAD_FIT_APPLY_OVERLAY is enabled") enables DT building as overlays
based on symbols which depends on SPL. But there is already an option to
apply overlays in full U-Boot too.
And there are platforms which are not using SPL and there is no option to
build DTs with -@ parameter.
That's why change dependency on OF_LIBFDT_OVERLAY which is already symbol
which is selected when SPL_LOAD_FIT_APPLY_OVERLAY is enabled but also
adding support for platforms which don't enable SPL and want to work with
overlays on U-Boot prompt.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/Makefile.lib

index 734001c952a175f63b9d4a616533dde4096f97eb..56e9d5424296bb0b69c74208cec04325d959899f 100644 (file)
@@ -311,7 +311,7 @@ cmd_dt_S_dtb=                                               \
 $(obj)/%.dtb.S: $(obj)/%.dtb
        $(call cmd,dt_S_dtb)
 
-ifeq ($(CONFIG_SPL_LOAD_FIT_APPLY_OVERLAY),y)
+ifeq ($(CONFIG_OF_LIBFDT_OVERLAY),y)
 DTC_FLAGS += -@
 endif