[PATCH] make: dts: fix out-of-tree build

Sascha Hauer s.hauer at pengutronix.de
Mon May 5 00:38:36 PDT 2014


Hi Silvio,

On Wed, Apr 30, 2014 at 07:49:34AM +0200, Silvio Fricke wrote:
> 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>

I already realized and fixed this when someone else mentioned
out-of-tree building doesn't work. It seems I really have to do this
more frequently.

Sascha

> ---
>  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
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list