summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-01-28 15:22:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-01-28 15:31:59 +0100
commitdb35548372eaee835fbf9bae68c08362ba59d49d (patch)
treea192dc7c00d83ff2dda05f5c97036a33030f7c19 /Makefile
parent6a1bd66e15a96bedd0625bdee9ca10d78c908df8 (diff)
downloadbarebox-db35548372eaee835fbf9bae68c08362ba59d49d.tar.gz
barebox-db35548372eaee835fbf9bae68c08362ba59d49d.tar.xz
build: Include dts/include/ after include/
dts/include/ contains Kernel upstream dt-binding include files. includes are searched for in this directory before our own include directories are used. This becomes a problem when we have files existing in the barebox include directory which then appear in dts/include/ due to a dts update. Make sure that we still use the barebox files in this case so that we can later drop the barebox custom file explicitly along with the fixes that might be needed to use the upstream file. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 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)