From 08317fa541a10bd2e385479d73e99348cc2351dd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 25 May 2018 13:36:17 +0200 Subject: rework hardware and C library settings Make the menu system for configuration more intuitive. First choose operating system, then hardware, starting with architecture. Then choose either generic or a sample system. When choosing a sample be more strict in case of MMU or Endianess selection, so a misconfiguration isn't possible. Furthermore put a new top level menu for C library configuration and add Binary format, Instruction set, version selection, float type and any C library specific options. Refactor the duplicate definition of Qemu system versatile and Synopsys NSIM. --- target/config/Config.in.instructions | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 target/config/Config.in.instructions (limited to 'target/config/Config.in.instructions') diff --git a/target/config/Config.in.instructions b/target/config/Config.in.instructions new file mode 100644 index 000000000..9393a5ac8 --- /dev/null +++ b/target/config/Config.in.instructions @@ -0,0 +1,39 @@ +# 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" +depends on ADK_TARGET_ARCH_ARM + +config ADK_TARGET_ARCH_ARM_WITH_ARM + bool "arm" + +config ADK_TARGET_ARCH_ARM_WITH_THUMB + bool "thumb" + select ADK_LINUX_KERNEL_ARM_THUMB if ADK_TARGET_OS_LINUX + select ADK_LINUX_KERNEL_THUMB2_KERNEL if ADK_TARGET_OS_LINUX + select ADK_WALDUX_KERNEL_ARM_THUMB if ADK_TARGET_OS_WALDUX + select ADK_WALDUX_KERNEL_THUMB2_KERNEL if ADK_TARGET_OS_WALDUX + 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 + +config ADK_TARGET_ARCH_MIPS_WITH_NAN_LEGACY + bool + depends on ADK_TARGET_ARCH_MIPS \ + || ADK_TARGET_ARCH_MIPS64 + +config ADK_TARGET_ARCH_MIPS_WITH_NAN_2008 + bool + depends on ADK_TARGET_ARCH_MIPS \ + || ADK_TARGET_ARCH_MIPS64 + +config ADK_TARGET_NAN_MODE + string + default "legacy" if ADK_TARGET_ARCH_MIPS_WITH_NAN_LEGACY + default "2008" if ADK_TARGET_ARCH_MIPS_WITH_NAN_2008 -- cgit v1.2.3