[PATCH] make: dts: fix out-of-tree build
Silvio Fricke
silvio.fricke at gmail.com
Tue Apr 29 22:49:34 PDT 2014
If barebox is builded out-of-tree we don't find the dts-include
This patch prevent us to get this:
/[...]/barebox/drivers/input/keymap.c:4:37: fatal error: dt-bindings/input/input.h: No such file or directory
Signed-off-by: Silvio Fricke <silvio.fricke at gmail.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a54b82b..c654f4f 100644
--- a/Makefile
+++ b/Makefile
@@ -290,7 +290,7 @@ export MODVERDIR := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/).tmp_ve
# Use LINUXINCLUDE when you must reference the include/ directory.
# Needed to be compatible with the O= option
-LINUXINCLUDE := -Iinclude -Idts/include \
+LINUXINCLUDE := -Iinclude -I$(srctree)/dts/include \
$(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
-I$(srctree)/arch/$(ARCH)/include \
-I$(objtree)/arch/$(ARCH)/include \
--
1.9.2
More information about the barebox
mailing list