- From: Klaas Gadeyne <klaas.gadeyne_at_fmtc.be>
- Date: Mon, 6 Nov 2006 15:49:53 +0100 (CET)
On Mon, 30 Oct 2006, Dave Flogeras wrote: > I am trying to cross-compile for the Arcom Viper board (ARM PXA255). I have > its kernel properly build in my home directory. > > I have successfully cross-compiled comedlib by simply > using ./configure --host=arm-linux then make. So far so good. > > I run into trouble trying to build the comedi drivers: > > I am configuring using the following > > ./configure --host=arm-linux --with-linuxdir=/home/dflogeras/linux-source-2.6.11.11-arcom2 > > > When I run make, it dies, and it looks as though it is compiling with just > plain old 'gcc'. > > (Based on a post in the ML, I have tried exporting CC, CXX, LD, AR, CPP to all > point to correct arm-linux variants of the toolchain but with the same > result.) I had similar troubles recently trying to compile comedi natively using distcc. I think I solved it like this (adapted to your problem): # CC="/path/to/myarmcompiler" ./configure --host=arm-linux --with-linuxdir=/home/dflogeras/linux-source-2.6.11.11-arcom2 # make LINUX_CC="path/to/myarmcompiler" That was for a 2.6 kernel. For the record: for a 2.4 kernel (which does not use the kbuild system), according to my notes, I used # CC="/path/to/myarmcompiler" ./configure --host=arm-linux --with-linuxdir=/home/dflogeras/linux-source-2.6.11.11-arcom2 # make CC="/path/to/myarmcompiler" LINUX_CC="path/to/myarmcompiler" ps. IIRC comedi does not yet support a build dir too, but I haven't looked deeper into that either :-( Klaas
Received on 2006-11-06Z14:49:53