Perfect. This way work fine.

Thanks!


2017-01-31 10:49 GMT+01:00 Juergen Borleis <j...@pengutronix.de>:

> Hi Alejandro,
>
> On Tuesday 31 January 2017 10:27:04 Alejandro Vázquez wrote:
> > I need use kernel headers to build a IPU app.
> > I select KERNEL_HEADERS in ptxdist and I add
> > CFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR)" in *.make.
> > Also I have added in the makefile -I$(KERNEL_HEADERS_INCLUDE_DIR)
> >
> > But it still does not compile because it does not find the headers.
> > It looks like the variable KERNEL_HEADERS_INCLUDE_DIR is empty, this can
> > be seen in the output of the compilation.
> >
> > -------------------------
> > > target: alpha_ex1.compile
> > > -------------------------
> > > make[1]: Entering directory `/ptxdist/BSP/local_src/alpha_ex1'
> > > arm-v7a-linux-gnueabihf-gcc -g -O0 -o alpha_ex1 alpha_ex1.c -I \
> > > -I/uapi
> > > alpha_ex1.c:26:25: fatal error: linux/mxcfb.h: No such file or
> > > directory #include <linux/mxcfb.h>
> >
> > Is there something wrong?
>
> Yes. You modify CFLAGS but you do not use it in your local Makefile.
>
> Try this instead:
>
> [...]
> ALPHA_EX1_MAKE_ENV      := $(CROSS_ENV) \
>         "KERNEL_HEADERS_INCLUDE_DIR=$(KERNEL_HEADERS_INCLUDE_DIR)"
> [...]
>
> This should set and forward the variable to 'make' when it works through
> your local Makefile.
>
> Happy hacking
> Juergen
>
> --
> Pengutronix e.K.                              | Juergen Borleis
>   |
> Industrial Linux Solutions                    | http://www.pengutronix.de/
>  |
>
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to