From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48599D4E.4040100@domain.hid> Date: Thu, 19 Jun 2008 01:42:06 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai-help] problems with configure and --enable-linux-build List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Axel Beierlein Cc: "Xenomai-help@domain.hid" Axel Beierlein wrote: > Hello, > > I try to install the actual Xenomai Version 2.4.4. > I get my kernel sources (2.4.25) from the denx git and my target system > was an ppc and my host an PC with ubuntu 804. The cross compiler is based > on the denx eldk41 for freescale ppc´s. > Patching the kernel with the adeos patch was succesful. I call the config > script from my build directory with the following line: > > ../xenomai-2.4.4/configure --build=i486-linux-gnu --host=powerpc-linux > --enable-linux-build=~/\ linuxppc_2_4_devel CC=ppc_6xx-gcc CXX=ppc_6xx-g++ > LD=ppc_6xx-ld > > $ARCH and $CROSS_COMPILE is already set by the eldk! > > but when i call > > make DESTDIR= install > > i get the error > > find: /home/axl/build_root/linux/include/asm: No such file or directory > scripts/mkdep -- init/*.c > .depend > gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer > -I/home/axl/build_root/linux/arch/ppc -o scripts/split-include > scripts/split-include.c > make[1]: *** Keine Regel vorhanden, um das Target > »include/linux/autoconf.h«, > benötigt von »include/config/MARKER«, zu erstellen. Schluss. > > when i call configure without --enable-linux-build, there are no problems. > > So i have a look at the copied linux sources in the build-tree and i must > see that configure doesn't copied all necessary files from the kernel > source directory like the file /linux/include/linux/autoconf.h. > > The symbolic link asm to asm-ppc is missing as well. > > So where is my mistake or is there a bug in configure? The configure script expects the source linux dir to be an unconfigured linux dir, the same you would use with the O option of Linux makefile, so I find it normal that the asm link is not copied. The problem you have is that the linux dir of Xenomai is unconfigured, you should run make oldconfig at least to take into account a .config file. Then, the compilation should run fine. This is showed in the section 2.5 of README.INSTALL. -- Gilles.