From 91b4e610817b1cb7dc342a7e1a76a4d0b733f2af Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 28 Nov 2011 17:28:19 +0000 Subject: [PATCH] Moved hardcoded vars (abi, arch, fpu, mode and float) to vars.mk --- Makefile | 4 ++-- vars.mk | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index daa0096..da7e72b 100644 --- a/Makefile +++ b/Makefile @@ -185,7 +185,7 @@ $(CROSSTOOLS)/lib/gcc: $(WORK)/build-gcc-static $(WORK)/gcc-$(GCC_VERSION) --disable-libgomp --disable-libmudflap --disable-libssp \ --with-mpfr=$(CROSSTOOLS) --with-gmp=$(CROSSTOOLS) --with-mpc=$(CROSSTOOLS) \ --disable-shared --disable-threads --enable-languages=c \ - --with-abi=aapcs-linux --with-arch=armv7-a --with-mode=thumb --with-float=hard --with-fpu=vfpv3-d16 && \ + --with-abi=$(ABI) --with-arch=$(ARCH) --with-mode=$(MODE) --with-float=$(FLOAT) --with-fpu=$(FPU) && \ make all-gcc all-target-libgcc && make install-gcc install-target-libgcc || exit 1 touch $(CROSSTOOLS)/lib/gcc @@ -262,7 +262,7 @@ $(CLFS)/lib/gcc: $(WORK)/build-gcc-final $(WORK)/gcc-$(GCC_VERSION) --disable-multilib --with-sysroot=$(CLFS) --disable-nls \ --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix \ --with-mpfr=$(CROSSTOOLS) --with-gmp=$(CROSSTOOLS) --with-mpc=$(CROSSTOOLS) \ - --with-abi=aapcs-linux --with-arch=armv7-a --with-mode=thumb --with-float=hard --with-fpu=vfpv3-d16 && \ + --with-abi=$(ABI) --with-arch=$(ARCH) --with-mode=$(MODE) --with-float=$(FLOAT) --with-fpu=$(FPU) && \ make AS_FOR_TARGET="$(TARGET)-as" LD_FOR_TARGET="$(TARGET)-ld" && \ make install || exit 1 touch $(CLFS)/lib/gcc diff --git a/vars.mk b/vars.mk index ac24583..54761f2 100644 --- a/vars.mk +++ b/vars.mk @@ -18,4 +18,11 @@ BINUTILS_VERSION = 2.21.1 GCC_VERSION = 4.6.1 GLIBC_VERSION = 2.13 +# Hardfp EfikaMX imx51 +ABI = aapcs-linux +ARCH = armv7-a +FPU = vfpv3-d16 +MODE = thumb +FLOAT = hard + # End of file -- 2.26.2