summaryrefslogtreecommitdiff
path: root/target/config/Config.in.float
diff options
context:
space:
mode:
Diffstat (limited to 'target/config/Config.in.float')
-rw-r--r--target/config/Config.in.float28
1 files changed, 26 insertions, 2 deletions
diff --git a/target/config/Config.in.float b/target/config/Config.in.float
index c193a9f2d..640f2f234 100644
--- a/target/config/Config.in.float
+++ b/target/config/Config.in.float
@@ -1,5 +1,29 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-source target/config/Config.in.float.choice
-source target/config/Config.in.float.default
+choice ADK_TARGET_FLOAT_MODE
+prompt "Float configuration"
+depends on ADK_TARGET_ARCH_ARM || \
+ ADK_TARGET_ARCH_M68K || \
+ ADK_TARGET_ARCH_MIPS || \
+ ADK_TARGET_ARCH_PPC
+
+config ADK_TARGET_HARD_FLOAT
+ bool "hard-float"
+ depends on ADK_TARGET_CPU_WITH_FPU
+
+config ADK_TARGET_SOFT_FLOAT
+ bool "soft-float"
+
+config ADK_TARGET_SOFTFP_FLOAT
+ bool "softfp"
+ depends on ADK_TARGET_ARCH_ARM
+
+endchoice
+
+config ADK_TARGET_FLOAT
+ string
+ depends on !ADK_TARGET_ARCH_M68K
+ default "hard" if ADK_TARGET_HARD_FLOAT
+ default "soft" if ADK_TARGET_SOFT_FLOAT
+ default "softfp" if ADK_TARGET_SOFTFP_FLOAT