From 24d3b5a70e433f4a647851063ca0057809ba747e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Bac=C5=82awski?= Date: Fri, 3 Aug 2012 12:33:31 +0200 Subject: [PATCH] Build different compiler version with same script. --- .gitignore | 3 ++ archives/fetch.sh | 6 +++ bootstrap.conf | 18 ++++++++ bootstrap.sh | 102 ++++++++++++++++++++++++++++++++++++++++++---- 4 files changed, 120 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 969c09d..51558c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,10 @@ *.lha *.tar.gz +*.tar.bz2 +adtools/ sources/ stamps/ build/ target/ host/ +tmp/ diff --git a/archives/fetch.sh b/archives/fetch.sh index 027dcc4..c4a6549 100755 --- a/archives/fetch.sh +++ b/archives/fetch.sh @@ -27,3 +27,9 @@ download \ download \ "http://sourceforge.net/projects/amiga/files/ixemul.library/48.2/ixemul-src.lha/download" \ "ixemul-48.2.lha" + +download "ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2" +download "ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz" +download "ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2" +download "ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.10.tar.bz2" +download "ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.17.0.tar.gz" diff --git a/bootstrap.conf b/bootstrap.conf index 73daded..5f60636 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -7,6 +7,23 @@ readonly GCC_CPP_SRC="gcc-g++-${GCC_VER}.tar.gz" readonly GCC_CORE_PATCH="gcc-core-${GCC_VER}-amiga.diff.gz" readonly GCC_CPP_PATCH="gcc-g++-${GCC_VER}-amiga.diff.gz" +# BEGIN GCC dependencies +readonly GMP="gmp-4.3.2" +readonly GMP_SRC="${GMP}.tar.bz2" + +readonly MPC="mpc-0.8.1" +readonly MPC_SRC="${MPC}.tar.gz" + +readonly MPFR="mpfr-2.4.2" +readonly MPFR_SRC="${MPFR}.tar.bz2" + +readonly ISL="isl-0.10" +readonly ISL_SRC="${ISL}.tar.bz2" + +readonly CLOOG="cloog-0.17.0" +readonly CLOOG_SRC="${CLOOG}.tar.gz" +# END GCC dependencies + readonly BINUTILS="binutils-2.9.1" readonly BINUTILS_SRC="${BINUTILS}.tar.gz" @@ -16,6 +33,7 @@ readonly IXEMUL_SRC="${IXEMUL}.lha" readonly LIBNIX="libnix-2.1" readonly LIBNIX_SRC="${LIBNIX}.tar.gz" +# Needed by GCC 2.95.3 readonly BISON="bison-1.35" readonly BISON_SRC="${BISON}.tar.gz" diff --git a/bootstrap.sh b/bootstrap.sh index bb329af..e40b718 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -31,6 +31,28 @@ function copy_non_diff { done } +function mkdir_empty { + rm -rf "$1" + mkdir -p "$1" +} + +function compare_version { + python - "$1" "$2" "$3" <