X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2Fgcc%2FtianoCross-gcc-4.1;h=bef18436aac9bc9bec1869803de0f18fd9e8f9c8;hp=6b1dcc2c78dea6bcb689c2a2f112593161e93477;hb=241c475d2db5b4ec391e78647f969cabe2c608d7;hpb=c9d5da94be21621967e558af4a917d969831f4fb diff --git a/Tools/gcc/tianoCross-gcc-4.1 b/Tools/gcc/tianoCross-gcc-4.1 index 6b1dcc2c78..bef18436aa 100644 --- a/Tools/gcc/tianoCross-gcc-4.1 +++ b/Tools/gcc/tianoCross-gcc-4.1 @@ -4,6 +4,10 @@ # Get, build and install the latest cross-development tools and libraries # +### +### CYGWIN :: Make sure that cygwin is mouting its file systems in binmode. +### + # # Specify the architectures for which the tools are to be built # To build for single target: ARCHS="m68k" @@ -23,6 +27,7 @@ GCC=gcc-4.1.0 BINUTILS=binutils-2.16.1 # BINUTILS=binutils-2.16.91-20060119-1 CYGWIN_SNAP=20060403 # You may need to find a more recent one. +export PATH=/bin:/usr/bin # # Where to install @@ -32,9 +37,7 @@ PREFIX="${PREFIX:-/opt/tiano/}" # # Where to get the GNU tools # -# BINUTILS_URL=http://superb.dl.sourceforge.net/sourceforge/mingw/${BINUTILS}-src.tar.gz BINUTILS_URL=ftp://ftp.ibiblio.org/pub/mirrors/gnu/ftp/gnu/binutils/${BINUTILS}.tar.bz2 -# GCC_URL=http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/gcc/gcc-${GCC}/${GCC}.tar.bz2 GCC_URL=ftp://mirrors.kernel.org/gnu/gcc/$GCC/$GCC.tar.bz2 CYG_LOC=http://cygwin.com/snapshots/cygwin-src-${CYGWIN_SNAP}.tar.bz2 # export http_proxy=http://proxy.dp.intel.com:911 @@ -103,15 +106,15 @@ build() { cd build-binutils-$targ "${CONF_SHELL}" "../${BINUTILS}/configure" \ --disable-nls "--target=${targ}" "--prefix=${pref}" - ${MAKE} -j5 -w all + ${MAKE} -j1 -w all ${MAKE} -w install - ) >> ${targ}.log 2>&1 + ) >> ${targ}.log 2>&1 && ( mkdir -p $pref/$targ/sys-include; cp -fr cygwin-snapshot-${CYGWIN_SNAP}-1/newlib/libc/include/* $pref/$targ/sys-include cp -fr cygwin-snapshot-${CYGWIN_SNAP}-1/winsup/cygwin/include/* $pref/$targ/sys-include - ) + ) && ( mkdir -p build-gcc-$targ cd build-gcc-$targ @@ -119,7 +122,7 @@ build() { --with-gnu-as --with-gnu-ld --with-newlib --verbose \ --disable-libssp \ --disable-nls --enable-languages=c - ${MAKE} -j5 -w all + ${MAKE} -j1 -w all ${MAKE} -w install ) >> ${targ}.log 2>&1 ) & @@ -138,3 +141,5 @@ build() { getSource unpackSource build + +