]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Makefile.lib: find capsule ESL dtsi file with CONFIG_OF_UPSTREAM
authorJonathan Humphreys <j-humphreys@ti.com>
Mon, 8 Apr 2024 21:28:43 +0000 (16:28 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 17 Apr 2024 23:05:54 +0000 (17:05 -0600)
When CONFIG_OF_UPSTREAM is enabled, DTS files are in SOC subdirectories (vs the
top level dts directory), but when CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled,
the dynamically created dtsi file containing the capsule ESL DT node is in the
parent directory. This results in a build failure because the #include inserted
in the DTS file is local to the current directory.  Update Makefile to have the
DT preprocessing of #includes search in the parent (dts top level) directory
too.

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
scripts/Makefile.lib

index 12857316c582e185c14881d872642152d1145096..62f87517c09c059d10b7ac1603ba9483c8b53710 100644 (file)
@@ -334,7 +334,7 @@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
        (cat $< > $(pre-tmp)); \
        $(foreach f,$(subst $(quote),,$(dtsi_include_list)), \
          echo '$(pound)include "$(f)"' >> $(pre-tmp);) \
-       $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $(pre-tmp) ; \
+       $(HOSTCC) -E $(dtc_cpp_flags) -I$(obj) -x assembler-with-cpp -o $(dtc-tmp) $(pre-tmp) ; \
        $(DTC) -O dtb -o $@ -b 0 \
                -i $(dir $<) -i $(u_boot_dtsi_loc) $(DTC_FLAGS) \
                -d $(depfile).dtc.tmp $(dtc-tmp) || \