tar xvzf binutils-2.16.tar.gz cd binutils-2.16 mkdir arm-linux cd arm-linux ../configure --target=arm-linux --with-lib-path=/usr/local/arm-linux/lib:/usr/local/arm-linux/lib/be:/usr/local/arm-linux/lib/soft-float:/usr/local/arm-linux/lib/be/soft-float make make install chmod 777 /usr/local/arm-linux
3. gcc-3.4.4
tar xvzf gcc-3.4.4.tar.gz cd gcc-3.4.4
cp $(ATTACHED t-linux file) gcc/config/arm/ vi gcc/config/arm/linux-elf.h -- remove line that defines LIBGCC_SPEC
mkdir arm-linux cd arm-linux ../configure --target=arm-linux --disable-shared --disable-threads \ --prefix=/usr/local --with-headers=linux-2.4.x/include \ --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c make make install
4. glibc-2.3.3 (big-endian)
tar xvzf glibc-2.3.3.tar.gz cd glibc-2.3.3 tar xvzf glibc-linuxthreads-2.3.3.tar.gz
rm -rf nptl vi sysdeps/unix/sysv/linux/arm/ioperm.c - change "BUS_ISA" to be "CTL_BUS_ISA" lines 103 and 104 vi config.make.in - change "slibdir = @...@" to "slibdir = @libdir@" vi Makeconfig - change all occurrances of "O2" to "O" - remove any occurrances of -lgcc_eh vi configure - change all occurrances of "O2" to "O" touch sysdeps/arm/framestate.c
mkdir arm-linux cd arm-linux CC="arm-linux-gcc -mbig-endian -finline-limit=10000" \ AS="arm-linux-as -mbig-endian" \ LD="arm-linux-ld -EB" \ ../configure --host=arm-linux --build=i686-pc-linux-gnu \ --with-headers=linux-2.4.x/include \ --enable-add-ons --enable-shared --prefix=/usr/local/arm-linux \ --libdir=/usr/local/arm-linux/lib/be make make install
5. glibc-2.3.3 (little-endian)
tar xvzf glibc-2.3.3.tar.gz cd glibc-2.3.3 tar xvzf glibc-linuxthreads-2.3.3.tar.gz
[ Apply same fixes as above ]
mkdir arm-linux cd arm-linux CC="arm-linux-gcc -finline-limit=10000" \ AS="arm-linux-as" \ LD="arm-linux-ld" \ ../configure --host=arm-linux --build=i686-pc-linux-gnu \ --with-headers=linux-2.4.x/include \ --enable-add-ons --enable-shared --prefix=/usr/local/arm-linux make make install
6. glibc-2.3.3 (big-endian/soft-float)
tar xvzf glibc-2.3.3.tar.gz cd glibc-2.3.3 tar xvzf glibc-linuxthreads-2.3.3.tar.gz
[ Apply same fixes as above ]
mkdir arm-linux cd arm-linux CC="arm-linux-gcc -mbig-endian -msoft-float -finline-limit=10000" \ AS="arm-linux-as -mbig-endian" \ LD="arm-linux-ld -EB" \ ../configure --host=arm-linux --build=i686-pc-linux-gnu \ --with-headers=linux-2.4.x/include \ --enable-add-ons --enable-shared --prefix=/usr/local/arm-linux \ --without-fp --libdir=/usr/local/arm-linux/lib/be/soft-float make make install
7. glibc-2.3.3 (little-endian/soft-float)
tar xvzf glibc-2.3.3.tar.gz cd glibc-2.3.3 tar xvzf glibc-linuxthreads-2.3.3.tar.gz
cp $(ATTACHED t-linux file) gcc/config/arm/ vi gcc/config/arm/t-linux - remove all "-Dinhibit_libc" occruances vi gcc/config/arm/linux-elf.h -- remove line that defines LIBGCC_SPEC perl -pi -e 's/int namelen/unsigned int namelen/' libjava/java/net/natInetAddressPosix.cc
mkdir arm-linux cd arm-linux ../configure --target=arm-linux --disable-shared \ --prefix=/usr/local --with-headers=linux-2.4.x/include \ --with-gnu-as --with-gnu-ld --enable-multilib make make install
------------------------------------------------------------------------------ # Just for these, we omit the frame pointer since it makes such a big # difference. It is then pointless adding debugging. TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix LIBGCC2_DEBUG_CFLAGS = -g0
文章评论(0条评论)
登录后参与讨论