]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scripts/Makefile.lib: Rework upstream_dtsi_include to get subdirectories
authorTom Rini <trini@konsulko.com>
Wed, 28 May 2025 23:27:04 +0000 (17:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Jun 2025 19:54:10 +0000 (13:54 -0600)
A problem with the logic in upstream_dtsi_include currently is that it
does not list directories such as dts/upstream/src/arm/nxp/imx and so
will not findi "imx6ul-pinfunc.h" for example as it is normally and
correctly included without vendor sub-paths. Expand the current wildcard
glob to catch these directories too.

Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
scripts/Makefile.lib

index e89a4a51b74ddccfd9f0a6463cdeded12eaa5235..ac14e4f9dfb21b5d7ad87b1df25bf48c3eb9d5b9 100644 (file)
@@ -205,8 +205,10 @@ dtsi_include_list = $(strip $(u_boot_dtsi_options_debug) \
 # Modified for U-Boot
 upstream_dtsi_include = $(addprefix -I, $(srctree)/dts/upstream/src/ \
        $(sort $(dir $(wildcard $(srctree)/dts/upstream/src/$(ARCH)/*/*))) \
+       $(sort $(dir $(wildcard $(srctree)/dts/upstream/src/$(ARCH)/*/*/*))) \
        $(if (CONFIG_ARM64), \
-                $(sort $(dir $(wildcard $(srctree)/dts/upstream/src/arm64/*/*)))))
+                $(sort $(dir $(wildcard $(srctree)/dts/upstream/src/arm64/*/*))) \
+                $(sort $(dir $(wildcard $(srctree)/dts/upstream/src/arm64/*/*/*)))))
 dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc                    \
                 $(UBOOTINCLUDE)                                         \
                 -I$(dir $<)                                             \