summaryrefslogtreecommitdiff
path: root/target/config/Config.in.archopts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-08 01:04:23 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-08-08 01:04:23 +0200
commite31fad60d72c35811a2a25fb0ade2cedf33309db (patch)
tree6f652f209c4ad3d95946d3de14b54c961b21f381 /target/config/Config.in.archopts
parent4769cd580a27fbdee884192d56e9c67d11accfc1 (diff)
add support for ARM thumb mode
Diffstat (limited to 'target/config/Config.in.archopts')
-rw-r--r--target/config/Config.in.archopts21
1 files changed, 17 insertions, 4 deletions
diff --git a/target/config/Config.in.archopts b/target/config/Config.in.archopts
index 03de1768b..fd16981bf 100644
--- a/target/config/Config.in.archopts
+++ b/target/config/Config.in.archopts
@@ -1,9 +1,22 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
+choice
+prompt "Instruction set"
+
+config ADK_TARGET_ARCH_ARM_WITH_ARM
+ bool "arm"
+ depends on ADK_TARGET_WITH_MMU
+
config ADK_TARGET_ARCH_ARM_WITH_THUMB
- bool
- select ADK_KERNEL_ARM_THUMB
- select ADK_KERNEL_THUMB2_KERNEL
- depends on ADK_TARGET_ARCH_ARM
+ bool "thumb"
+ select ADK_KERNEL_ARM_THUMB
+ select ADK_KERNEL_THUMB2_KERNEL
+ depends on ADK_TARGET_CPU_WITH_THUMB || ADK_TARGET_CPU_WITH_THUMB2
+
+endchoice
+config ADK_TARGET_INSTRUCTION_SET
+ string
+ default "arm" if ADK_TARGET_ARCH_ARM_WITH_ARM
+ default "thumb" if ADK_TARGET_ARCH_ARM_WITH_THUMB