export PROJECT=daq-module export PRJROOT=/home/wl/work/${PROJECT} export TARGET=i386-linux export PREFIX=${PRJROOT}/tools export TARGET_PREFIX=${PREFIX}/${TARGET} export PATH=${PREFIX}/bin:${PATH}
export PROJECT=arm-module export PRJROOT=/home/wl/work/${PROJECT} export TARGET=arm-linux export PREFIX=${PRJROOT}/tools export TARGET_PREFIX=${PREFIX}/${TARGET} export PATH=${PREFIX}/bin:${PATH}
export PROJECT=ppc-module export PRJROOT=/home/wl/work/${PROJECT} export TARGET=powerpc-linux export PREFIX=${PRJROOT}/tools export TARGET_PREFIX=${PREFIX}/${TARGET} export PATH=${PREFIX}/bin:${PATH}
cd ${PRJROOT}/build-tools mkdir build-binutils build-boot-gcc build-glibc build-gcc
#======================================================================
cd $MYPRJ echo $MYPRJ
#clear patch -p1 < ../patch-2.4.21-rmk2 #====================================================================== make ARCH=i386 CROSS_COMPILE=i386-linux- menuconfig #====================================================================== mkdir -p ${TARGET_PREFIX}/include cp -r include/linux/ ${TARGET_PREFIX}/include cp -r include/asm-i386/ ${TARGET_PREFIX}/include/asm cp -r include/asm-generic/ ${TARGET_PREFIX}/include #====================================================================== tar xvzf #====================================================================== configure --target=$TARGET --prefix=${PREFIX} #====================================================================== grep -r 'const struct relax_type md_relax_table\[\]' *#-r琛ㄧず閫掑綊鎼滅储瀛愮洰褰?#====================================================================== tar xvzf gcc-core-2.95.3.tar.gz #====================================================================== configure --target=$TARGET --prefix=${PREFIX} --without-headers \ --with-newlib --enable-languages=c
#====================================================================== CC=i386-linux-gcc ../glibc-2.2.4/configure --host=$TARGET \ --prefix="/usr" --enable-add-ons \ --with-headers=${TARGET_PREFIX}/include
CC=i386-linux-gcc configure --host=$TARGET \ --prefix="/usr" --enable-add-ons \ --with-headers=${TARGET_PREFIX}/include
CC=ppc-linux-gcc configure --host=$TARGET \ --prefix="/usr" --enable-add-ons \ --with-headers=${TARGET_PREFIX}/include
CC=arm-linux-gcc ../glibc-2.6.1/configure --host=$TARGET \ --prefix="/usr" --enable-add-ons \ --with-headers=${TARGET_PREFIX}/include
../glibc-2.6.1/configure --host=$TARGET --prefix="/usr" \ --enable-add-ons --with-headers=${TARGET_PREFIX}/include
#====================================================================== make install_root=${TARGET_PREFIX} prefix="" install #====================================================================== configure --target=$TARGET --prefix=${PREFIX} \ --enable-languages=c,c++
|