summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-22 12:06:37 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-22 12:07:34 -0500
commitec3f682d79a38b29ef51b7cdbc9fb9afbe2c9c63 (patch)
tree049febcf48b847f12b6bf6310ed9df48892a7ddb /toolchain/gcc
parentaaaf9c02b66182559dc42ccc983d73bf31644b9b (diff)
rework toolchain support for ARM.
Use --with-cpu for gcc to have optimized code for requested ARM cpus. Add some basic support for cortex-m3.
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index dc59bfd35..110ef9d16 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -126,28 +126,20 @@ GCC_CONFOPTS+= --with-fpu=$(ADK_TARGET_FPU)
endif
endif
-ifeq ($(ADK_CPU_ARMV5TE),y)
-GCC_CONFOPTS+= --with-arch=armv5te
-endif
-
-ifeq ($(ADK_CPU_ARMV6),y)
-GCC_CONFOPTS+= --with-arch=armv6
-endif
-
-ifeq ($(ADK_CPU_ARMV7A),y)
-GCC_CONFOPTS+= --with-arch=armv7-a
-endif
-
ifeq ($(ADK_CPU_ARM926EJ_S),y)
-GCC_CONFOPTS+= --with-arch=armv5te --with-tune=arm926ej-s
+GCC_CONFOPTS+= --with-cpu=arm926ej-s
endif
ifeq ($(ADK_CPU_ARM1176JZF_S),y)
-GCC_CONFOPTS+= --with-arch=armv6 --with-tune=arm1176jzf-s
+GCC_CONFOPTS+= --with-cpu=arm1176jzf-s
+endif
+
+ifeq ($(ADK_CPU_CORTEX_M3),y)
+GCC_CONFOPTS+= --with-cpu=cortex-m3
endif
ifeq ($(ADK_CPU_CORTEX_A9),y)
-GCC_CONFOPTS+= --with-arch=armv7-a --with-tune=cortex-a9
+GCC_CONFOPTS+= --with-cpu=cortex-a9
endif
ifeq ($(ADK_CPU_SPARC_V9),y)