aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2020-06-22 14:18:29 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-06-23 09:24:01 +0300
commit85a5a94f6c542140d8aba8817860cb5e71bdc666 (patch)
tree2c580e46b8eacb2a1dcee4f2e570046105aa85d6
parenta89dc3a161923104d052cf4901e856ffbd985036 (diff)
downloadlinux-dt-85a5a94f6c542140d8aba8817860cb5e71bdc666.tar.gz
Makefile: Fix compilation for dts with /include/
Similar to kernel's Makefile (see scripts/Makefile.lib), add src file's directory to include path so that files using /include/ directive compile properly Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f6be44..cc7ec5d 100644
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,7 @@ $(dtb_tmp): $(O)/%.dts.pre : $(LINUX)/%.dts
$(dtb_dst): $(O)/%.dtb : $(O)/%.dts.pre
@echo " DTC $@"
- @$(DTC) $(DTC_FLAGS) -o $@ $<
+ @$(DTC) $(DTC_FLAGS) -i$(LINUX)/$(dir $<) -o $@ $<
dtbs: $(dtb_dst)