CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Moved hardcoded vars (abi, arch, fpu, mode and float) to vars.mk 2.7
authorVictor Martinez <pitillo@ono.com>
Mon, 28 Nov 2011 17:28:19 +0000 (17:28 +0000)
committerVictor Martinez <pitillo@ono.com>
Mon, 28 Nov 2011 17:28:19 +0000 (17:28 +0000)
Makefile
vars.mk

index daa0096b053126d3b44394a1d7b402c8b72436c4..da7e72b63b89a04028dbf25ee9f67697a1717cc8 100644 (file)
--- 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 ac245839cd3260bae6c28a715149aabd5a72bdbe..54761f2463304b27c9484bf6ddd5b1070f711b39 100644 (file)
--- 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