Browse Source

revert, unfortunately there is libgcc, which is then build with the wrong options

Waldemar Brodkorb 10 years ago
parent
commit
e7d5fb78fa
1 changed files with 24 additions and 0 deletions
  1. 24 0
      toolchain/gcc/Makefile

+ 24 - 0
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