Browse Source

rework thumb2 support

do not change gcc defaults, discussed with phil, make
the resulting toolchains more conform.
Waldemar Brodkorb 11 years ago
parent
commit
999c0d4d60
3 changed files with 4 additions and 25 deletions
  1. 0 13
      target/config/Config.in
  2. 4 11
      toolchain/Config.in
  3. 0 1
      toolchain/gcc/Makefile

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

+ 4 - 11
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

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