mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
scripts/Makefile.lib: Rework upstream_dtsi_include to get subdirectories
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>
This commit is contained in:
@@ -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 $<) \
|
||||
|
||||
Reference in New Issue
Block a user