From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: MIME-Version: 1.0 In-Reply-To: <201701311049.51452.jbe@pengutronix.de> References: <201701311049.51452.jbe@pengutronix.de> From: =?UTF-8?Q?Alejandro_V=C3=A1zquez?= Date: Tue, 31 Jan 2017 11:36:58 +0100 Message-ID: Subject: Re: [ptxdist] kernel headers in ptxdist List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0992527092==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: Juergen Borleis Cc: ptxdist@pengutronix.de --===============0992527092== Content-Type: multipart/alternative; boundary=f403045f8a04ffa4bf054761820b --f403045f8a04ffa4bf054761820b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Perfect. This way work fine. Thanks! 2017-01-31 10:49 GMT+01:00 Juergen Borleis : > Hi Alejandro, > > On Tuesday 31 January 2017 10:27:04 Alejandro V=C3=A1zquez wrote: > > I need use kernel headers to build a IPU app. > > I select KERNEL_HEADERS in ptxdist and I add > > CFLAGS=3D"-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 ca= n > > 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 > > > > 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 :=3D $(CROSS_ENV) \ > "KERNEL_HEADERS_INCLUDE_DIR=3D$(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= / > | > --f403045f8a04ffa4bf054761820b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Perfect. This way work fine.

Thanks!


2017-01-31 10:49 GMT+01:00 Juergen Borleis <jbe@pengutronix.de= >:
Hi Alejandro,

On Tuesday 31 January 2017 10:27:04 Alejandro V=C3=A1zquez wrote:
> I need use kernel headers to build a IPU app.
> I select KERNEL_HEADERS in ptxdist and I add
> CFLAGS=3D"-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 c= an
> be seen in the output of the compilation.
>
> -------------------------
> > target: alpha_ex1.compile
> > -------------------------
> > make[1]: Entering directory `/ptxdist/BSP/local_src/alpha_ex= 1'
> > arm-v7a-linux-gnueabihf-gcc -g -O0 -o alpha_ex1 alpha_ex1.c -I \<= br> > > -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=C2=A0 =C2=A0 =C2=A0 :=3D $(CROSS_ENV) \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "KERNEL_HEADERS_INCLUDE_DIR=3D$(KERNE= L_HEADERS_INCLUDE_DIR)"
[...]

This should set and forward the variable to 'make' when it works th= rough
your local Makefile.

Happy hacking
Juergen

--
Pengutronix e.K. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Juergen Borleis =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0| http://www.pengutronix.de/ =C2=A0|

--f403045f8a04ffa4bf054761820b-- --===============0992527092== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0992527092==--