summaryrefslogtreecommitdiff
path: root/BaseTools/gcc
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-07 16:29:26 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-07 16:29:26 +0000
commited4c327ca34f1f16eda8c80183ecdd6960f2f335 (patch)
tree08c7cc045e6e87762b35cdd0e5e8782f173f0c35 /BaseTools/gcc
parentd729895f71756d54a1b5a849ebf4396ee628b2c1 (diff)
downloadedk2-platforms-ed4c327ca34f1f16eda8c80183ecdd6960f2f335.tar.xz
edk2/BaseTools:
Reference BaseTools source for gcc instructions & scripts. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4997 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/gcc')
-rw-r--r--BaseTools/gcc/README.txt35
-rwxr-xr-xBaseTools/gcc/tianoCross-gcc-4.1147
-rwxr-xr-xBaseTools/gcc/x86_64-mingw-gcc-build172
3 files changed, 0 insertions, 354 deletions
diff --git a/BaseTools/gcc/README.txt b/BaseTools/gcc/README.txt
deleted file mode 100644
index 3b9428dbe7..0000000000
--- a/BaseTools/gcc/README.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-You may run these scripts to build a Tiano Cross compiler. They have been
-tested on Cygwin, OS X and Linux. You must modify these scripts to make them
-work on your system. You may need to install additional tools on your system to
-make the scripts work.
-
-You will need
-
- A recent version (3.0 or later should be fine) of gcc that is able to produce
- executables for the machine that you want to run this compiler on (the host
- machine).
- wget or curl
- tar
- bzip
- gzip
- bash
- and possibly others
-
-CYGWIN Notes
-
-You should setup cygwin to use binmode on all mounts. When you initially
-install cygwin it gives you the choice of Unix file mode (recommended) or DOS
-file mode. Unix mode will cause all the cygwin directories to be mounted in
-binmode, while DOS will mount the dirs in textmode. Here is an example of a
-cygwin install where the dirs are (properly) mounted in binmode.
-
-C:\cygwin\bin on /usr/bin type user (binmode)
-C:\cygwin\lib on /usr/lib type user (binmode)
-c:\workspace on /workspace type system (binmode)
-C:\cygwin on / type user (binmode)
-
-If you use textmode, it is likely that the build will fail in a way that is
-hard to debug.
-
-Cygwin is pretty slow, so it is not recommended for large builds.
-
diff --git a/BaseTools/gcc/tianoCross-gcc-4.1 b/BaseTools/gcc/tianoCross-gcc-4.1
deleted file mode 100755
index d23ae161df..0000000000
--- a/BaseTools/gcc/tianoCross-gcc-4.1
+++ /dev/null
@@ -1,147 +0,0 @@
-#!/bin/bash
-
-#
-# 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"
-#
-ARCHS="${ARCHS:-i386}"
-
-# Let's be nice
-renice 10 -p $$
-
-# If any thing goes wrong, we'll bail out.
-set -e
-
-#
-# Specify the versions
-#
-GCC=gcc-4.1.0
-BINUTILS=binutils-2.18
-CYGWIN_SNAP=20071108 # You may need to find a more recent version.
-export PATH=/bin:/usr/bin
-
-#
-# Where to install
-#
-PREFIX="${PREFIX:-/opt/tiano/}"
-
-#
-# Where to get the GNU tools
-#
-BINUTILS_URL=http://mirrors.kernel.org/gnu/binutils/${BINUTILS}.tar.bz2
-GCC_URL=http://mirrors.kernel.org/gnu/gcc/$GCC/$GCC.tar.bz2
-CYG_LOC=http://cygwin.com/snapshots/cygwin-src-${CYGWIN_SNAP}.tar.bz2
-
-# If your site uses proxy servers, un-comment the following lines
-# and change the server name to your site's proxy server and proxy port.
-# export http_proxy=http://proxyservername.mycompany.com:911
-# export ftp_proxy=http://proxyservername.mycompany.com:911
-
-#
-# Uncomment one of the following depending upon which your system provides
-#
-#GET_COMMAND="curl --remote-name"
-GET_COMMAND="wget -c -nc --no-directories --retr-symlinks "
-
-#
-# Allow environment to override some programs
-#
-MAKE="${MAKE:-make}"
-export MAKE
-SHELL="${SHELL:-/bin/sh}"
-export SHELL
-
-#
-# Get the source
-# If you don't have curl on your machine, try using
-# wget --passive-ftp --no-directories --retr-symlinks <<url>>
-# If that doesn't work, try without the --passive-ftp option.
-#
-getSource() {
- ${GET_COMMAND} "${BINUTILS_URL}" &
- ${GET_COMMAND} "${GCC_URL}" &
- ${GET_COMMAND} "${CYG_LOC}" &
- wait
-}
-
-#
-# Unpack the source
-#
-unpackSource() {
- (rm -rf "${BINUTILS}"
- tar jxf "${BINUTILS}.tar.bz2"
- ) &
-
- (rm -rf "${GCC}"
- tar jxf "${GCC}.tar.bz2"
- ) &
-
- (rm -rf cygwin-snapshot-${CYGWIN_SNAP}-1/
- tar jxf cygwin-src-${CYGWIN_SNAP}.tar.bz2
- ) &
-
- wait
-}
-
-CONF_SHELL="${CONF_SHELL:-/bin/bash}"
-# CONF_SHELL="${CONF_SHELL:-echo}"
-
-#
-# Build
-#
-build() {
- for arch in $ARCHS
- do (
- export targ=${arch}-tiano-pe
- export pref=${PREFIX}${targ}
- export PATH="${pref}/bin:$PATH"
-
- ( mkdir -p build-binutils-$targ
- cd build-binutils-$targ
- "${CONF_SHELL}" "../${BINUTILS}/configure" \
- --disable-nls "--target=${targ}" "--prefix=${pref}"
- ${MAKE} -j1 -w all
- ${MAKE} -w install
- ) >> ${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
- "${CONF_SHELL}" "../${GCC}/configure" "--target=${targ}" "--prefix=${pref}" \
- --with-gnu-as --with-gnu-ld --with-newlib --verbose \
- --disable-libssp \
- --disable-nls --enable-languages=c
- ${MAKE} -j1 -w all
- ${MAKE} -w install
- ) >> ${targ}.log 2>&1
- ) &
- done
-
- wait
-}
-
-
-
-#
-# Do everything
-#
-# Comment out any activities you wish to omit
-#
-getSource
-unpackSource
-build
-
-
diff --git a/BaseTools/gcc/x86_64-mingw-gcc-build b/BaseTools/gcc/x86_64-mingw-gcc-build
deleted file mode 100755
index 74ac870181..0000000000
--- a/BaseTools/gcc/x86_64-mingw-gcc-build
+++ /dev/null
@@ -1,172 +0,0 @@
-#!/bin/bash
-
-#
-# Build a mingw64 compiler for doing x64 compiles.
-#
-
-###
-### CYGWIN :: Make sure that cygwin is mouting its file systems in binmode.
-###
-
-#
-# Specify the architectures for which the tools are to be built
-#
-TARGS="${TARGS:-x86_64-pc-mingw32}"
-
-# Let's be nice
-renice 10 -p $$
-
-# If any thing goes wrong, we'll bail out.
-set -e
-
-#
-# Specify the versions
-#
-GCC_VERSION=4.3-20071207
-BINUTILS_VERSION=2.17.50.0.18
-MINGW_HEADERS_VERSION=20070802
-
-_GCC_=gcc-${GCC_VERSION}
-_BINUTILS_=binutils-${BINUTILS_VERSION}
-_MINGW_HEADERS_=mingw-w64-headers-${MINGW_HEADERS_VERSION}
-
-export PATH=/bin:/usr/bin:/usr/local/bin
-
-#
-# Where to install
-#
-PREFIX="${PREFIX:-/opt/tiano/}"
-
-#
-# Where to get the GNU tools
-#
-BINUTILS_URL=http://www.kernel.org/pub/linux/devel/binutils/${_BINUTILS_}.tar.bz2
-GCC_URL=ftp://gd.tuwien.ac.at/gnu/gcc/snapshots/${GCC_VERSION}/${_GCC_}.tar.bz2
-MINGW_HEADERS_URL=http://superb-west.dl.sourceforge.net/sourceforge/mingw/${_MINGW_HEADERS_}.tar.bz2
-
-#
-# If your site uses proxy servers, un-comment the following lines
-# and change the server name to your site's proxy server and proxy port.
-# export http_proxy=http://proxyservername.mycompany.com:911
-# export ftp_proxy=http://proxyservername.mycompany.com:911
-
-#
-# Uncomment one of the following depending upon which your system provides
-#
-#GET_COMMAND="curl --remote-name"
-GET_COMMAND="wget -c -nc --no-directories --retr-symlinks "
-
-#
-# Allow environment to override some programs
-#
-MAKE="${MAKE:-make}"
-export MAKE
-SHELL="${SHELL:-/bin/sh}"
-export SHELL
-
-#
-# Get the source
-# If you don't have curl on your machine, try using
-# wget --passive-ftp --no-directories --retr-symlinks <<url>>
-# If that doesn't work, try without the --passive-ftp option.
-#
-getSource() {
- ${GET_COMMAND} "${BINUTILS_URL}"
- ${GET_COMMAND} "${GCC_URL}"
- ${GET_COMMAND} "${MINGW_HEADERS_URL}"
- wait
-}
-
-#
-# Unpack the source
-#
-unpackSource() {
- (rm -rf "${_BINUTILS_}"
- tar jxf "${_BINUTILS_}.tar.bz2"
- )
-
- (rm -rf "${_GCC_}"
- tar jxf "${_GCC_}.tar.bz2"
- )
-
- (rm -rf "include"
- tar jxf "${_MINGW_HEADERS_}.tar.bz2"
- )
-
- wait
-}
-
-CONF_SHELL="${CONF_SHELL:-/bin/bash}"
-# CONF_SHELL="${CONF_SHELL:-echo}"
-
-#
-# Build
-#
-build() {
- for targ in $TARGS
- do (
- export pref=${PREFIX}${targ}
- export PATH="${pref}/bin:$PATH"
- rm -f ${targ}.log
-
- (
- rm -rf build-binutils-$targ
- mkdir -p build-binutils-$targ
- cd build-binutils-$targ
- "${CONF_SHELL}" "../${_BINUTILS_}/configure" \
- --disable-nls "--target=${targ}" "--prefix=${pref}"
- ${MAKE} -j1 -w all
- ${MAKE} -w install
- ) >> ${targ}.log 2>&1
-
- (
- mkdir -p $pref/$targ/include;
- cp -fr include/* $pref/$targ/include
- ln -s $pref/$targ $pref/mingw
- ln -s $pref/$targ/include $pref/$targ/sys-include
- )
-
-
- (
- rm -rf build-gcc-$targ
- mkdir -p build-gcc-$targ
- cd build-gcc-$targ
- "${CONF_SHELL}" "../${_GCC_}/configure" "--target=${targ}" \
- "--prefix=${pref}" \
- --without-headers --with-newlib --verbose \
- --disable-libssp --disable-nls --enable-languages=c
- ${MAKE} -j1 -w all
- ${MAKE} -w install
- ) >> ${targ}.log 2>&1
-
- # GCC 4.3 needs the symbol links for the gcc and binutils. Otherwise
- # the cc1 and as, ld etc can not be found by gcc.
- (
- rm -f $pref/$targ/bin/*
- ln -s $pref/bin/$targ-ar $pref/$targ/bin/ar
- ln -s $pref/bin/$targ-as $pref/$targ/bin/as
- ln -s $pref/bin/$targ-dlltool $pref/$targ/bin/dlltool
- ln -s $pref/bin/$targ-gcc $pref/$targ/bin/gcc
- ln -s $pref/bin/$targ-ld $pref/$targ/bin/ld
- ln -s $pref/bin/$targ-nm $pref/$targ/bin/nm
- ln -s $pref/bin/$targ-objcopy $pref/$targ/bin/objcopy
- ln -s $pref/bin/$targ-objdump $pref/$targ/bin/objdump
- ln -s $pref/bin/$targ-ranlib $pref/$targ/bin/ranlib
- ln -s $pref/bin/$targ-strip $pref/$targ/bin/strip
- )
- )
- done
-
- wait
-}
-
-
-
-#
-# Do everything
-#
-# Comment out any activities you wish to omit
-#
-getSource
-unpackSource
-build