summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--scripts/Makefile.lib2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3125d62811..a79773513b 100644
--- a/Makefile
+++ b/Makefile
@@ -431,8 +431,9 @@ USERINCLUDE := \
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
-LINUXINCLUDE := -Iinclude -I$(srctree)/dts/include \
+LINUXINCLUDE := -Iinclude \
$(if $(building_out_of_srctree), -I$(srctree)/include) \
+ -I$(srctree)/dts/include \
-I$(srctree)/arch/$(SRCARCH)/include \
-I$(objtree)/arch/$(SRCARCH)/include \
$(USERINCLUDE)
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 13b1789c01..b5ff621b07 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -203,8 +203,8 @@ ld_flags = $(KBUILD_LDFLAGS) $(ldflags-y)
dtc_cpp_flags = -Wp,-MD,$(depfile).pre -nostdinc \
-Wp,-MT,$(basename $(notdir $@)).o \
-I$(srctree)/arch/$(SRCARCH)/dts/include \
- -I$(srctree)/dts/include \
-I$(srctree)/include \
+ -I$(srctree)/dts/include \
-I$(srctree)/dts/src/ \
$(DTC_CPP_FLAGS_$(basetarget).dtb) \
-undef -D__DTS__