summaryrefslogtreecommitdiff
path: root/nuttx/lib/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/Kconfig')
-rw-r--r--nuttx/lib/Kconfig23
1 files changed, 19 insertions, 4 deletions
diff --git a/nuttx/lib/Kconfig b/nuttx/lib/Kconfig
index ddd5e2dde..77cf62665 100644
--- a/nuttx/lib/Kconfig
+++ b/nuttx/lib/Kconfig
@@ -30,12 +30,27 @@ config LIB_HOMEDIR
---help---
The home directory to use with operations like such as 'cd ~'
-config HAVE_LIBM
- bool "Architecture-specific libm.a"
+config LIBM
+ bool "Math library"
default n
+ depends on !ARCH_MATH_H
---help---
- Architecture specific logic provides an implementation of libm.a
- and a math.h header file that can be found at include/arch/math.h.
+ By default, no math library will be provided by NuttX. In this this case, it
+ is assumed that (1) no math library is required, or (2) you will be using the
+ math.h header file and the libm library provided by your toolchain.
+
+ This is may be a very good choice is possible because your toolchain may have
+ have a highly optimized version of libm.
+
+ Another possibility is that you have a custom, architecture-specific math
+ libary and that the corresponding math.h file resides at arch/<architecture>/include/math.h.
+ The option is selected via ARCH_MATH_H. If ARCH_MATH_H is selected,then the include/nuttx/math.h
+ header file will be copied to include/math.h where it can be used by your applications.
+
+ If ARCH_MATH_H is not defined, then this option can be selected to build a generic,
+ math library built into NuttX. This math library comes from the Rhombus OS and
+ was written by Nick Johnson. The Rhombus OS math library port was contributed by
+ Darcy Gong.
config NOPRINTF_FIELDWIDTH
bool "Disable sprintf support fieldwidth"