From: Alex Z. <aj...@ca...> - 2005-06-30 09:33:46
|
Try this: CC=3D/path/to/arm-linux-gcc TARGET_ROOT=3D/path/to/target/root/file/system CC=3D${CC} ./configure --host=3Darm-linux --build=3Di386 --prefix=3D${TARGE= T_ROOT}/usr I also found that I needed the attached patch to get the qgen stuff to cross compile (patch is against linux-2.4.1). Alex On Wed, 29 Jun 2005 17:35:11 +0200"Yann E. MORIN" <yan...@an...> wrote: > Hi all! >=20 > I can not cross-compile linux-atm tools. The build machine is > i686-pc-linux-gnu, and the host is armv5b-xscale-linux-gnu. >=20 >=20 > Problem: > I'm using CVS branch V2_5_0 as of 20050628. The build fails while attempt= ing > to build qgen. qgen must run on the build system. Unfortunately, it is bu= ilt > with the cross-tools, preventing it to run. >=20 > I looked in the archives, but alas, the only references to cross-compiling > are for 0.78, which /old/, and anyway patches (if any) do not apply to > current. >=20 >=20 > Workaround tested: > Hand-edited the generated Makefile so that it builds. Unfortunately, a la= ter > tool, sigd, needs files previously build wthin qgen's directory. I didn't= go > further in this direction, but... >=20 > Question: > Does qgen has to run on _both_ the build and host systems? >=20 >=20 > Way to solution? > Add a subdir in qgen, called native, where a native qgen is built, enforc= ing > build host cc to be used in place of $(CC). I tried to do that by adding a > "SUBDIRS =3D native ." (without the quotes) rule at the top of qgen's=20 > Makefile.am, and creating a Makefile.am in native/ (order is important, so > that native is built before current dir). Unfortunately, I'm not versed i= nto > autotools, and there is no makefile generated. Will try harder tomorow. >=20 >=20 > In the meantime, if someone happens to have a solution, or even The Solut= ion, > I would be extremly gratefull if he/she could hint me were to look at. > (and, no, I do not and can't have a native armv5b-xscale-linux-gnu toolch= ain > to run on the host system... :-) ). >=20 > Thanks for your attention, > Yann E. MORIN. >=20 > --=20 > .-----------------.--------------------.------------------.--------------= ---- > --. > | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspi= racy: > | | > | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ^ = =20 > | | > | --=3D=3D< =B0_=B0 >=3D=3D-- =B0---.----------------: X AGAINST |= /e\ There is > | no | web: ymorin.free.fr | SETI@home 3808 | / \ HTML MAIL | """=20 > | conspiracy. | > =B0---------------------=B0----------------=B0------------------=B0 > --------------------=B0 > \__ np: [Stopped] > __________________________________________________________/ >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=CCk > _______________________________________________ > Linux-atm-general mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-atm-general |