From f5d6f9a10175f27f862edb967143f8cfe5f5ff4d Mon Sep 17 00:00:00 2001 From: Olaf Rempel Date: Sat, 1 May 2010 17:07:30 +0200 Subject: [PATCH] bump versions, add other cpu types --- Makefile | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 10fe2c2..e005aca 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ TOOLCHAIN=/opt/arm-toolchain # build arch: BUILDARCH=i686-linux-gnu +TARGETARCH=arm-elf MAKEOPTS=-j4 @@ -20,40 +21,40 @@ PATH:=$(PATH):$(TOOLCHAIN)/bin WGET:=/usr/bin/wget --passive-ftp -nd # ##################################################################### -BINUTILS_VERSION=2.19.1 +BINUTILS_VERSION=2.20.1 BINUTILS_PACKAGE=binutils-$(BINUTILS_VERSION).tar.bz2 BINUTILS_DOWNLOAD=http://ftp.gnu.org/gnu/binutils/$(BINUTILS_PACKAGE) BINUTILS_SOURCE=$(SOURCE)/binutils-$(BINUTILS_VERSION) BINUTILS_BUILD=$(BINUTILS_SOURCE)-build # ##################################################################### -GCC_VERSION=4.3.3 +GCC_VERSION=4.4.3 GCC_PACKAGE=gcc-$(GCC_VERSION).tar.bz2 GCC_DOWNLOAD=http://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/$(GCC_PACKAGE) GCC_SOURCE=$(SOURCE)/gcc-$(GCC_VERSION) GCC_BUILD=$(GCC_SOURCE)-build # ##################################################################### -GMP_VERSION=4.3.0 +GMP_VERSION=4.3.2 GMP_PACKAGE=gmp-$(GMP_VERSION).tar.bz2 GMP_DOWNLOAD=http://ftp.gnu.org/gnu/gmp/$(GMP_PACKAGE) GMP_SOURCE=$(GCC_SOURCE)/gmp-$(GMP_VERSION) # ##################################################################### -MPFR_VERSION=2.4.1 +MPFR_VERSION=2.4.2 MPFR_PACKAGE=mpfr-$(MPFR_VERSION).tar.bz2 MPFR_DOWNLOAD=http://www.mpfr.org/mpfr-$(MPFR_VERSION)/$(MPFR_PACKAGE) MPFR_SOURCE=$(GCC_SOURCE)/mpfr-$(MPFR_VERSION) # ##################################################################### -NEWLIB_VERSION=1.17.0 +NEWLIB_VERSION=1.18.0 NEWLIB_PACKAGE=newlib-$(NEWLIB_VERSION).tar.gz NEWLIB_DOWNLOAD=ftp://sources.redhat.com/pub/newlib/$(NEWLIB_PACKAGE) NEWLIB_SOURCE=$(SOURCE)/newlib-$(NEWLIB_VERSION) NEWLIB_BUILD=$(NEWLIB_SOURCE)-build # ##################################################################### -GDB_VERSION=6.8 +GDB_VERSION=7.1 GDB_PACKAGE=gdb-$(GDB_VERSION).tar.bz2 GDB_DOWNLOAD=http://ftp.gnu.org/gnu/gdb/$(GDB_PACKAGE) GDB_SOURCE=$(SOURCE)/gdb-$(GDB_VERSION) @@ -79,10 +80,11 @@ $(BINUTILS_SOURCE)/.unpacked: $(DOWNLOADS)/$(BINUTILS_PACKAGE) $(BINUTILS_BUILD)/.configured: $(BINUTILS_SOURCE)/.unpacked mkdir -p $(BINUTILS_BUILD) (cd $(BINUTILS_BUILD); $(BINUTILS_SOURCE)/configure \ - --build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \ + --build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \ --prefix=$(TOOLCHAIN) \ --enable-interwork \ --enable-multilib \ + --enable-target-optspace \ --disable-nls \ ); touch $@ @@ -108,12 +110,14 @@ $(GCC_SOURCE)/.unpacked: $(DOWNLOADS)/$(GCC_PACKAGE) $(GCC_BUILD)/.configured: $(GCC_SOURCE)/.unpacked $(GMP_SOURCE)/.unpacked $(MPFR_SOURCE)/.unpacked $(NEWLIB_SOURCE)/.unpacked mkdir -p $(GCC_BUILD) (cd $(GCC_BUILD); $(GCC_SOURCE)/configure \ - --build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \ + --build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \ --prefix=$(TOOLCHAIN) \ --enable-languages="c,c++" \ --enable-interwork \ --enable-multilib \ - --with-cpu=arm7tdmi \ + --disable-libssp \ + --enable-target-optspace \ + --with-cpu=arm7tdmi --with-cpu=cortex-m3 --with-cpu=arm966e-s \ --with-newlib --with-headers=$(NEWLIB_SOURCE)/newlib/libc/include \ --disable-nls \ ); @@ -169,10 +173,12 @@ $(NEWLIB_SOURCE)/.unpacked: $(DOWNLOADS)/$(NEWLIB_PACKAGE) $(NEWLIB_BUILD)/.configured: $(NEWLIB_SOURCE)/.unpacked $(GCC_BUILD)/.stage1.installed mkdir -p $(NEWLIB_BUILD) (cd $(NEWLIB_BUILD); $(NEWLIB_SOURCE)/configure \ - --build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \ + --build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \ --prefix=$(TOOLCHAIN) \ --enable-interwork \ --enable-multilib \ + --disable-newlib-io-float \ + --disable-newlib-supplied-syscalls \ --disable-nls \ ); touch $@ @@ -198,7 +204,7 @@ $(GDB_SOURCE)/.unpacked: $(DOWNLOADS)/$(GDB_PACKAGE) $(GDB_BUILD)/.configured: $(GDB_SOURCE)/.unpacked $(GCC_BUILD)/.installed mkdir -p $(GDB_BUILD) (cd $(GDB_BUILD); $(GDB_SOURCE)/configure \ - --build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \ + --build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \ --prefix=$(TOOLCHAIN) \ --enable-interwork \ --enable-multilib \