Add ${CONFIG_SYS_CONFIG_NAME}-u-boot.dtsi into dtsi include search order:
dtsi location, SYS_SOC, SYS_CPU, SYS_VENDOR, (SYS_CONFIG_NAME), no prefix

Signed-off-by: E Shattow <e...@freeshell.de>
---
 scripts/Makefile.lib | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 5db2fbc418a..e5193126411 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -201,6 +201,7 @@ u_boot_dtsi_options = $(strip $(wildcard 
$(u_boot_dtsi_loc)$(basename $(notdir $
        $(wildcard $(u_boot_dtsi_loc)$(subst 
$\",,$(CONFIG_SYS_SOC))-u-boot.dtsi) \
        $(wildcard $(u_boot_dtsi_loc)$(subst 
$\",,$(CONFIG_SYS_CPU))-u-boot.dtsi) \
        $(wildcard $(u_boot_dtsi_loc)$(subst 
$\",,$(CONFIG_SYS_VENDOR))-u-boot.dtsi) \
+       $(wildcard $(u_boot_dtsi_loc)$(subst 
$\",,$(CONFIG_SYS_CONFIG_NAME))-u-boot.dtsi) \
        $(wildcard $(u_boot_dtsi_loc)u-boot.dtsi))
 
 u_boot_dtsi_options_raw = $(warning Automatic .dtsi inclusion: options: \
@@ -208,6 +209,7 @@ u_boot_dtsi_options_raw = $(warning Automatic .dtsi 
inclusion: options: \
        $(u_boot_dtsi_loc)$(subst $\",,$(CONFIG_SYS_SOC))-u-boot.dtsi \
        $(u_boot_dtsi_loc)$(subst $\",,$(CONFIG_SYS_CPU))-u-boot.dtsi \
        $(u_boot_dtsi_loc)$(subst $\",,$(CONFIG_SYS_VENDOR))-u-boot.dtsi \
+       $(u_boot_dtsi_loc)$(subst $\",,$(CONFIG_SYS_CONFIG_NAME))-u-boot.dtsi \
        $(u_boot_dtsi_loc)u-boot.dtsi ... \
        found: $(if $(u_boot_dtsi_options),"$(u_boot_dtsi_options)",nothing!))
 

base-commit: cb0b67fa49df836627230ba62fc718ea4afddf60
-- 
2.50.0

Reply via email to