1
0

Config.in.float 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. choice ADK_TARGET_FLOAT_MODE
  4. prompt "Float configuration"
  5. depends on ADK_TARGET_ARCH_ARM || \
  6. ADK_TARGET_ARCH_CSKY || \
  7. ADK_TARGET_ARCH_M68K || \
  8. ADK_TARGET_ARCH_MIPS || \
  9. ADK_TARGET_ARCH_NIOS2 || \
  10. ADK_TARGET_ARCH_PPC
  11. config ADK_TARGET_HARD_FLOAT
  12. bool "hard-float"
  13. depends on ADK_TARGET_CPU_WITH_FPU \
  14. && !ADK_TARGET_CPU_WITH_FPU_FPV5 \
  15. && !ADK_TARGET_OS_FROSTED
  16. config ADK_TARGET_HARD_FLOAT_SP
  17. bool "hard-float-single-precision"
  18. depends on ADK_TARGET_CPU_WITH_FPU && ADK_TARGET_CPU_WITH_FPU_FPV5
  19. config ADK_TARGET_HARD_FLOAT_DP
  20. bool "hard-float-double-precision"
  21. depends on ADK_TARGET_CPU_WITH_FPU && ADK_TARGET_CPU_WITH_FPU_FPV5
  22. config ADK_TARGET_SOFT_FLOAT
  23. bool "soft-float"
  24. config ADK_TARGET_SOFTFP_FLOAT
  25. bool "softfp"
  26. depends on ADK_TARGET_ARCH_ARM && !ADK_TARGET_OS_FROSTED
  27. endchoice
  28. config ADK_TARGET_FLOAT
  29. string
  30. depends on !ADK_TARGET_ARCH_M68K \
  31. && !ADK_TARGET_ARCH_NIOS2
  32. default "hard" if ADK_TARGET_HARD_FLOAT || ADK_TARGET_HARD_FLOAT_SP || ADK_TARGET_HARD_FLOAT_DP
  33. default "soft" if ADK_TARGET_SOFT_FLOAT
  34. default "softfp" if ADK_TARGET_SOFTFP_FLOAT