summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-04-30 01:37:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-04-30 01:39:03 +0200
commit999c0d4d60937174ad592d3992e608415ff91a20 (patch)
tree3828f01093e318deea61242d5812715f5f49622c
parent7bcadb06072bccdda7eebb8f9217e63745cf30b1 (diff)
rework thumb2 support
do not change gcc defaults, discussed with phil, make the resulting toolchains more conform.
-rw-r--r--target/config/Config.in13
-rw-r--r--toolchain/Config.in15
-rw-r--r--toolchain/gcc/Makefile1
3 files changed, 4 insertions, 25 deletions
diff --git a/target/config/Config.in b/target/config/Config.in
index b5cd6121c..8cc77b06c 100644
--- a/target/config/Config.in
+++ b/target/config/Config.in
@@ -50,12 +50,6 @@ config ADK_fpu_neon
config ADK_fpu_vfp
boolean
-config ADK_mode_arm
- boolean
-
-config ADK_mode_thumb
- boolean
-
config ADK_TARGET_FLOAT
string
default "hard" if ADK_hard_float
@@ -66,13 +60,6 @@ config ADK_TARGET_FPU
default "vfp" if ADK_fpu_vfp
default "neon" if ADK_fpu_neon
-config ADK_TARGET_ARM_MODE
- depends on ADK_LINUX_ARM
- string
- default "arm" if ADK_mode_arm
- default "thumb" if ADK_mode_thumb
- default "arm"
-
config ADK_TARGET_ENDIAN
string
default "little" if ADK_little
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 6a41140b8..f80c44841 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -44,18 +44,11 @@ config ADK_TOOLCHAIN_USE_GOLD
depends on ADK_TOOLCHAIN_GOLD
default n
-choice
-prompt "Use ARM thumb mode"
-depends on ADK_CPU_CORTEX_A9
-
-config ADK_LINUX_ARM_WITHOUT_THUMB
- boolean "disabled"
- select ADK_mode_arm
-
config ADK_LINUX_ARM_WITH_THUMB
- boolean "enabled"
- select ADK_mode_thumb
+ prompt "Use THUMB2 ARM mode"
+ boolean
+ depends on ADK_CPU_CORTEX_A9 && ADK_TARGET_LIB_GLIBC
select ADK_KERNEL_THUMB2_KERNEL
+ default n
-endchoice
endmenu
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 12ad4ebca..7616f2ab3 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -89,7 +89,6 @@ endif
ifeq ($(ARCH),arm)
GCC_CONFOPTS+= --with-float=$(ADK_TARGET_FLOAT)
-GCC_CONFOPTS+= --with-mode=$(ADK_TARGET_ARM_MODE)
ifneq ($(ADK_TARGET_FPU),)
GCC_CONFOPTS+= --with-fpu=$(ADK_TARGET_FPU)
endif