bump versions, add other cpu types
This commit is contained in:
parent
8dd67d29a0
commit
f5d6f9a101
28
Makefile
28
Makefile
@ -3,6 +3,7 @@ TOOLCHAIN=/opt/arm-toolchain
|
|||||||
|
|
||||||
# build arch:
|
# build arch:
|
||||||
BUILDARCH=i686-linux-gnu
|
BUILDARCH=i686-linux-gnu
|
||||||
|
TARGETARCH=arm-elf
|
||||||
|
|
||||||
MAKEOPTS=-j4
|
MAKEOPTS=-j4
|
||||||
|
|
||||||
@ -20,40 +21,40 @@ PATH:=$(PATH):$(TOOLCHAIN)/bin
|
|||||||
WGET:=/usr/bin/wget --passive-ftp -nd
|
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_PACKAGE=binutils-$(BINUTILS_VERSION).tar.bz2
|
||||||
BINUTILS_DOWNLOAD=http://ftp.gnu.org/gnu/binutils/$(BINUTILS_PACKAGE)
|
BINUTILS_DOWNLOAD=http://ftp.gnu.org/gnu/binutils/$(BINUTILS_PACKAGE)
|
||||||
BINUTILS_SOURCE=$(SOURCE)/binutils-$(BINUTILS_VERSION)
|
BINUTILS_SOURCE=$(SOURCE)/binutils-$(BINUTILS_VERSION)
|
||||||
BINUTILS_BUILD=$(BINUTILS_SOURCE)-build
|
BINUTILS_BUILD=$(BINUTILS_SOURCE)-build
|
||||||
|
|
||||||
# #####################################################################
|
# #####################################################################
|
||||||
GCC_VERSION=4.3.3
|
GCC_VERSION=4.4.3
|
||||||
GCC_PACKAGE=gcc-$(GCC_VERSION).tar.bz2
|
GCC_PACKAGE=gcc-$(GCC_VERSION).tar.bz2
|
||||||
GCC_DOWNLOAD=http://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/$(GCC_PACKAGE)
|
GCC_DOWNLOAD=http://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)/$(GCC_PACKAGE)
|
||||||
GCC_SOURCE=$(SOURCE)/gcc-$(GCC_VERSION)
|
GCC_SOURCE=$(SOURCE)/gcc-$(GCC_VERSION)
|
||||||
GCC_BUILD=$(GCC_SOURCE)-build
|
GCC_BUILD=$(GCC_SOURCE)-build
|
||||||
|
|
||||||
# #####################################################################
|
# #####################################################################
|
||||||
GMP_VERSION=4.3.0
|
GMP_VERSION=4.3.2
|
||||||
GMP_PACKAGE=gmp-$(GMP_VERSION).tar.bz2
|
GMP_PACKAGE=gmp-$(GMP_VERSION).tar.bz2
|
||||||
GMP_DOWNLOAD=http://ftp.gnu.org/gnu/gmp/$(GMP_PACKAGE)
|
GMP_DOWNLOAD=http://ftp.gnu.org/gnu/gmp/$(GMP_PACKAGE)
|
||||||
GMP_SOURCE=$(GCC_SOURCE)/gmp-$(GMP_VERSION)
|
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_PACKAGE=mpfr-$(MPFR_VERSION).tar.bz2
|
||||||
MPFR_DOWNLOAD=http://www.mpfr.org/mpfr-$(MPFR_VERSION)/$(MPFR_PACKAGE)
|
MPFR_DOWNLOAD=http://www.mpfr.org/mpfr-$(MPFR_VERSION)/$(MPFR_PACKAGE)
|
||||||
MPFR_SOURCE=$(GCC_SOURCE)/mpfr-$(MPFR_VERSION)
|
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_PACKAGE=newlib-$(NEWLIB_VERSION).tar.gz
|
||||||
NEWLIB_DOWNLOAD=ftp://sources.redhat.com/pub/newlib/$(NEWLIB_PACKAGE)
|
NEWLIB_DOWNLOAD=ftp://sources.redhat.com/pub/newlib/$(NEWLIB_PACKAGE)
|
||||||
NEWLIB_SOURCE=$(SOURCE)/newlib-$(NEWLIB_VERSION)
|
NEWLIB_SOURCE=$(SOURCE)/newlib-$(NEWLIB_VERSION)
|
||||||
NEWLIB_BUILD=$(NEWLIB_SOURCE)-build
|
NEWLIB_BUILD=$(NEWLIB_SOURCE)-build
|
||||||
|
|
||||||
# #####################################################################
|
# #####################################################################
|
||||||
GDB_VERSION=6.8
|
GDB_VERSION=7.1
|
||||||
GDB_PACKAGE=gdb-$(GDB_VERSION).tar.bz2
|
GDB_PACKAGE=gdb-$(GDB_VERSION).tar.bz2
|
||||||
GDB_DOWNLOAD=http://ftp.gnu.org/gnu/gdb/$(GDB_PACKAGE)
|
GDB_DOWNLOAD=http://ftp.gnu.org/gnu/gdb/$(GDB_PACKAGE)
|
||||||
GDB_SOURCE=$(SOURCE)/gdb-$(GDB_VERSION)
|
GDB_SOURCE=$(SOURCE)/gdb-$(GDB_VERSION)
|
||||||
@ -79,10 +80,11 @@ $(BINUTILS_SOURCE)/.unpacked: $(DOWNLOADS)/$(BINUTILS_PACKAGE)
|
|||||||
$(BINUTILS_BUILD)/.configured: $(BINUTILS_SOURCE)/.unpacked
|
$(BINUTILS_BUILD)/.configured: $(BINUTILS_SOURCE)/.unpacked
|
||||||
mkdir -p $(BINUTILS_BUILD)
|
mkdir -p $(BINUTILS_BUILD)
|
||||||
(cd $(BINUTILS_BUILD); $(BINUTILS_SOURCE)/configure \
|
(cd $(BINUTILS_BUILD); $(BINUTILS_SOURCE)/configure \
|
||||||
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \
|
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \
|
||||||
--prefix=$(TOOLCHAIN) \
|
--prefix=$(TOOLCHAIN) \
|
||||||
--enable-interwork \
|
--enable-interwork \
|
||||||
--enable-multilib \
|
--enable-multilib \
|
||||||
|
--enable-target-optspace \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
);
|
);
|
||||||
touch $@
|
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
|
$(GCC_BUILD)/.configured: $(GCC_SOURCE)/.unpacked $(GMP_SOURCE)/.unpacked $(MPFR_SOURCE)/.unpacked $(NEWLIB_SOURCE)/.unpacked
|
||||||
mkdir -p $(GCC_BUILD)
|
mkdir -p $(GCC_BUILD)
|
||||||
(cd $(GCC_BUILD); $(GCC_SOURCE)/configure \
|
(cd $(GCC_BUILD); $(GCC_SOURCE)/configure \
|
||||||
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \
|
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \
|
||||||
--prefix=$(TOOLCHAIN) \
|
--prefix=$(TOOLCHAIN) \
|
||||||
--enable-languages="c,c++" \
|
--enable-languages="c,c++" \
|
||||||
--enable-interwork \
|
--enable-interwork \
|
||||||
--enable-multilib \
|
--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 \
|
--with-newlib --with-headers=$(NEWLIB_SOURCE)/newlib/libc/include \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
);
|
);
|
||||||
@ -169,10 +173,12 @@ $(NEWLIB_SOURCE)/.unpacked: $(DOWNLOADS)/$(NEWLIB_PACKAGE)
|
|||||||
$(NEWLIB_BUILD)/.configured: $(NEWLIB_SOURCE)/.unpacked $(GCC_BUILD)/.stage1.installed
|
$(NEWLIB_BUILD)/.configured: $(NEWLIB_SOURCE)/.unpacked $(GCC_BUILD)/.stage1.installed
|
||||||
mkdir -p $(NEWLIB_BUILD)
|
mkdir -p $(NEWLIB_BUILD)
|
||||||
(cd $(NEWLIB_BUILD); $(NEWLIB_SOURCE)/configure \
|
(cd $(NEWLIB_BUILD); $(NEWLIB_SOURCE)/configure \
|
||||||
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \
|
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \
|
||||||
--prefix=$(TOOLCHAIN) \
|
--prefix=$(TOOLCHAIN) \
|
||||||
--enable-interwork \
|
--enable-interwork \
|
||||||
--enable-multilib \
|
--enable-multilib \
|
||||||
|
--disable-newlib-io-float \
|
||||||
|
--disable-newlib-supplied-syscalls \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
);
|
);
|
||||||
touch $@
|
touch $@
|
||||||
@ -198,7 +204,7 @@ $(GDB_SOURCE)/.unpacked: $(DOWNLOADS)/$(GDB_PACKAGE)
|
|||||||
$(GDB_BUILD)/.configured: $(GDB_SOURCE)/.unpacked $(GCC_BUILD)/.installed
|
$(GDB_BUILD)/.configured: $(GDB_SOURCE)/.unpacked $(GCC_BUILD)/.installed
|
||||||
mkdir -p $(GDB_BUILD)
|
mkdir -p $(GDB_BUILD)
|
||||||
(cd $(GDB_BUILD); $(GDB_SOURCE)/configure \
|
(cd $(GDB_BUILD); $(GDB_SOURCE)/configure \
|
||||||
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=arm-elf \
|
--build=$(BUILDARCH) --host=$(BUILDARCH) --target=$(TARGETARCH) \
|
||||||
--prefix=$(TOOLCHAIN) \
|
--prefix=$(TOOLCHAIN) \
|
||||||
--enable-interwork \
|
--enable-interwork \
|
||||||
--enable-multilib \
|
--enable-multilib \
|
||||||
|
Loading…
Reference in New Issue
Block a user