]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile: Fix of_list_dirs with EXT_DTB
authorManorit Chawdhry <m-chawdhry@ti.com>
Thu, 26 Jun 2025 10:43:32 +0000 (16:13 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jul 2025 22:19:31 +0000 (16:19 -0600)
EXT_DTB overrides the of_list_dirs that is passed to binman during
builds. This causes binman to not find the normal DTB paths and instead
it just is able to use the path for EXT_DTB only.

Add the default of_list_dirs that is used for normal binman builds to
EXT_DTB usecase as well.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Reviewed-by: Aniket Limaye <a-limaye@ti.com>
Makefile

index da53efa09f1c3bcaa52c46305ff5711cfe25aa41..b0e589c2eb0695f769950f074cd2621d2118b4e6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1584,17 +1584,17 @@ ifneq ($(EXT_DTB),)
 ext_dtb_list := $(basename $(notdir $(EXT_DTB)))
 default_dt := $(firstword $(ext_dtb_list))
 of_list := "$(ext_dtb_list)"
-of_list_dirs := $(dir $(EXT_DTB))
+of_list_dirs := $(dir $(EXT_DTB)) $(dt_dir)
 else
 of_list := $(CONFIG_OF_LIST)
-ifneq ($(CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS),)
-of_list_dirs := $(dt_dir) arch/$(ARCH)/dts
-else
 of_list_dirs := $(dt_dir)
-endif
 default_dt := $(if $(DEVICE_TREE),$(DEVICE_TREE),$(CONFIG_DEFAULT_DEVICE_TREE))
 endif
 
+ifneq ($(CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS),)
+of_list_dirs += arch/$(ARCH)/dts
+endif
+
 binman_dtb := $(shell echo $(CONFIG_BINMAN_DTB))
 ifeq ($(strip $(binman_dtb)),)
 ifeq ($(CONFIG_OF_EMBED),y)