Andrew Haley wrote:
Build gcc in a clean directory with --with-sysroot= pointing at your ARM
root filesystem:
/home/aph/gcc/trunk/configure --prefix=/local/x-arm-gcc/install \
--with-sysroot=/local/x-arm-gcc/rootfs-f8 --disable-libssp --disable-libgomp \
--disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib \
--disable-static --disable-sjlj-exceptions --target=arm-linux-gnueabi --enable-languages=c,c++,java
make
make install
This should work equally well for Debian, etc. You can use the root FS
from any ARM EABI Linux system.
Testing, first compiling on the x86 host:
$ /local/x-arm-gcc/install/bin/arm-linux-gnueabi-gcj Hello.java --main=Hello
And then running on the target, with the a.out we just made:
$ ./a.out
Hello, World!
Andrew.
woow... very useful info... :) :) i will try all these things and get back if i have some problems regarding this...
thanks... :)