Re CrossCompiler
Nikolaos Kefalas
nkef at otenet.gr
Wed Jun 13 11:50:01 EEST 2001
Telika ystera apo ligo psaksimo katafera na kano compile ena
Crosscompiler gia ton SH4 (h cpu pou exei to Dreamcast) .
target=sh-elh , prefix=/usr/local/sh
Exo aposympiesei ola ta sources sto /usr/local/src/
kai eftiaxa kai tous katalogous sh-bin ,sh-gcc , sh-newlib .
Ekana prota Compile ta BinUtils .
$cd sh-bin
$ ../binutils-2.10/configure --target=$target --prefix=$prefix
$ make all install
Thn GCC ekana configure os exeis :
$cd sh-gcc
$ ../gcc-2.95.2/configure --target=sh-elf --prefix=/usr/local/sh
--without-headers --without-libs --with-cpu=sh4
To howto elege na kano kai auth thn allagh den katalabaino ti kanei :-(
sto makefile sh-gcc/gcc/ pou dhmiourgh8hke meta to configure .
# Additional target-dependent options for compiling libgcc2.a.
TARGET_LIBGCC2_CFLAGS =
and add the option -Dinhibit_libc ????
$ make LANGUAGES="c" all install
Kai thn newlib me ton exeis tropo
$ cd sh-newlib
$ ../newlib-1.8.2/configure --target=$target --prefix=$prefix
$ make all install \
CC_FOR_TARGET=$i/${target}-gcc \
AS_FOR_TARGET=$i/${target}-as \
LD_FOR_TARGET=$i/${target}-ld \
AR_FOR_TARGET=$i/${target}-ar \
RANLIB_FOR_TARGET=$i/${target}-ranlib
Mhpos xerei kaneis pou mporo na kapoia analytikh lista me tis
parametrous pou pairnei to Configure ths GCC kai ti mporo na balo sthn
ka8e mia
analytika kai na exhgei ti kanei h ka8e mia kai pou mporei na
xrhsimopoih8ei ?
Sto link http://www.gnu.org/software/gcc/install/configure.html
anaferei kapoies kai dinei kai mia mikrh exhghsh .
--
NKef (Kefalas Nikolaos) <nkef at otenet.gr>
Studying Electrical & Computer Engineering @ UPatras
visit http://users.otenet.gr/~nkef
More information about the Linux-greek-users
mailing list