From a3989e3dbd80248789ee379538e6de22c1d47d0e Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 25 Feb 2011 16:52:25 +0000 Subject: We use different toolchain directories for different ARM archs, so we should set the default arch of gcc to reflect this. This enables EABI support for armv4 CPUs. Signed-off-by: Jochen Friedrich SVN-Revision: 25705 --- toolchain/gcc/common.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toolchain/gcc') diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 0f22e41..888cf7a 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -167,6 +167,10 @@ ifdef CONFIG_powerpc TARGET_CFLAGS := $(patsubst -Os,-O2,$(TARGET_CFLAGS)) endif +ifneq ($(GCC_ARCH),) + GCC_CONFIGURE+= --with-arch=$(GCC_ARCH) +endif + GCC_MAKE:= \ export SHELL="$(BASH)"; \ $(MAKE) $(TOOLCHAIN_JOBS) \ -- cgit v1.1