From e7d5fb78fa670f626349d1dc7eeb7fcd9ef57324 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 4 May 2014 10:56:35 +0200 Subject: revert, unfortunately there is libgcc, which is then build with the wrong options --- toolchain/gcc/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'toolchain/gcc') diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 0d309b60f..733dd9ddf 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -87,6 +87,30 @@ else GCC_CONFOPTS+= --enable-target-optspace endif +ifeq ($(ARCH),arm) +GCC_CONFOPTS+= --with-float=$(ADK_TARGET_FLOAT) +ifneq ($(ADK_TARGET_FPU),) +GCC_CONFOPTS+= --with-fpu=$(ADK_TARGET_FPU) +endif +endif + +ifeq ($(ADK_CPU_ARM926EJ_S),y) +GCC_CONFOPTS+= --with-arch=armv5te --with-tune=arm1176jzf-s +endif + +ifeq ($(ADK_CPU_ARM1176JZF_S),y) +GCC_CONFOPTS+= --with-arch=armv6 --with-tune=arm1176jzf-s +endif + +ifeq ($(ADK_CPU_CORTEX_A9),y) +GCC_CONFOPTS+= --with-arch=armv7-a --with-tune=cortex-a9 +endif + +ifeq ($(ADK_CPU_SPARC_V9),y) +GCC_CONFOPTS+= --with-cpu=ultrasparc +endif + + ifneq ($(ADK_TARGET_MIPS_ABI),) GCC_CONFOPTS+= --with-abi=${ADK_TARGET_MIPS_ABI} endif -- cgit v1.2.3