#### note: root password will be prompted!!! #------------------------------------------- # all the stuff i stored into ~/store # we'll go to compile all under ~/test cd mkdir -p ~/test cd ~/test tar zxf ~/store/binutils-2.10.tar.gz tar zxf ~/store/gcc-2.95.2.tar.gz tar Ixf ~/store/glibc-2.1.3.tar.bz2 cd glibc-2.1.3 tar zxf ~/store/glibc-crypt-2.1.2.tar.gz tar zxf ~/store/glibc-linuxthreads-2.1.3.tar.gz cd .. tar Ixf ~/store/linux-2.2.15.tar.bz2 mv linux linux-2.2.15 # all the patches are exploded into ~/patches cd ~ mkdir -p ~/patches cd ~/patches tar zxf ~/store/binutils-2.10-s390.tar.gz tar zxf ~/store/binutils-pic16.tar.gz tar zxf ~/store/gcc-2.95.2.4-s390.tar.gz tar zxf ~/store/gcc-2.95.2.4-s390-2.tar.gz tar zxf ~/store/gcc-2.95.2.4-s390-3.tar.gz tar zxf ~/store/gcc-2.95.2.4-s390-4.tar.gz tar zxf ~/store/glibc-2.1.3.3-s390.tar.gz tar zxf ~/store/glibc-linuxthreads-2.1.3.3-s390.tar.gz tar zxf ~/store/linux-2.2.15-s390.diff.tar.gz tar zxf ~/store/linux-2.2.15.xconfig.diff.tgz tar zxf ~/store/vintage-0.7-1-kernel.patch.tgz # # proceed to apply patches # cd ~/test patch -lp0 < ~/patches/binutils-2.10-s390.diff patch -lp0 < ~/patches/binutils-pic16.diff patch -lp0 < ~/patches/gcc-2.95.2.4-s390.diff cd ~/test/gcc-2.95.2 patch -lp1 < ~/patches/gcc-2.95.2.4-s390-2.diff patch -lp1 < ~/patches/gcc-2.95.2.4-s390-3.diff patch -lp1 < ~/patches/gcc-2.95.2.4-s390-4.diff cd ~/test patch -lp0 < ~/patches/glibc-2.1.3.3-s390.diff patch -lp0 < ~/patches/glibc-linuxthreads-2.1.3.3-s390.diff patch -lp0 < ~/patches/linux-2.2.15-s390.diff patch -lp0 < ~/patches/linux-2.2.15.xconfig.diff # # go build cross-compiler # # # binutils time # mkdir -p ~/test/binutls-build cd ~/test/binutils-build ../binutils-2.10/configure --prefix=/usr/local --target=s390-ibm-linux --host=$(uname -m)-pc-linux-gnu make su -c "make install" # # gcc time # mkdir ~/test/gcc-build cd ~/test/gcc-build ../gcc-2.95.2/configure --prefix=/usr/local --target=s390-ibm-linux --host=$(uname -m)-pc-linux-gnu --enable-languages="c" --with-newlib make su -c "make install" # # kernel config time # cd ~/test/linux-2.2.15 cp ~/store/.config . make ARCH=s390 CROSS_COMPILE=s390-ibm-linux- oldconfig # # kernel headers time # su -c "cp -ra ~/test/linux-2.2.15/include/linux/* /usr/local/s390-ibm-linux/include/linux/ ; cp -ra ~/test/linux-2.2.15/include/asm-s390/* /usr/local/s390-ibm-linux/include/asm/" # # glibc time # mkdir ~/test/glibc-build cd ~/test/glibc-build ../glibc-2.1.3/configure --prefix=/usr/local --target=s390-ibm-linux --host=$(uname -m)-pc-linux-gnu --enable-add-ons --disable-profile --enable-omitfp --nfp make su -c "make install" # # gcc last time # cd ~/test/gcc-build rm -fr * ../gcc-2.95.2/configure --prefix=/usr/local --target=s390-ibm-linux --host=$(uname -m)-pc-linux-gnu --enable-languages="c,c++" make su -c "make install" cd ..