From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <509409BF.3060808@gmail.com> Date: Fri, 02 Nov 2012 17:58:23 +0000 From: Stefan Videv MIME-Version: 1.0 References: <5092AEB3.2070009@gmail.com> <4b27818deb6c26a74a2ab839cb07f718.squirrel@www.xenomai.org> <5093F975.9060807@gmail.com> <5094066F.80501@gmail.com> <6f7c3c10f83647f48c380d2fa64b22c1.squirrel@www.xenomai.org> In-Reply-To: <6f7c3c10f83647f48c380d2fa64b22c1.squirrel@www.xenomai.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Compiling the Xenomai examples List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org On 11/02/2012 05:47 PM, Gilles Chanteperdrix wrote: > Stefan Videv wrote: >> On 11/02/2012 05:13 PM, Gilles Chanteperdrix wrote: >>> Stefan Videv wrote: >>>> make XENO=/media/rootfs/usr/xenomai/ ARCH=arm-linux-gnueabi- >>>> KSRC=/media/rootfs/usr/include DESTDIR=/media/rootfs >>> Should be ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi >>> and KSRC should be the path to the kernel sources. >>> >> Running the above (with the correction) produces the following: >> >> sed: can't read /media/rootfs/usr/include/Makefile: No such file or >> directory > So, obviously /media/rootfs/usr/include is not the path to the kernel > sources. If you are interested in how to compile kernel modules for > Linux, see: > > Documentation/kbuild/modules.txt > > In the kernel sources. > Thanks. I got it to compile now -- I pointed to the root directory of the kernel sources, is that ok? It of course remains to be tested if the examples would work at all. Do you want me to let you guys know when I test that? -- Stefan