2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
|
2023-02-17 22:21:13 +01:00
|
|
|
choice
|
|
|
|
prompt "Select math library"
|
|
|
|
default LIBM_NONE if DEFAULT_SMALL
|
|
|
|
default LIBM_TOOLCHAIN if !DEFAULT_SMALL
|
2017-02-10 16:32:55 +01:00
|
|
|
|
2012-11-10 17:06:01 +01:00
|
|
|
config LIBM
|
2023-02-17 22:21:13 +01:00
|
|
|
bool "Math library from NuttX"
|
2012-11-10 17:06:01 +01:00
|
|
|
depends on !ARCH_MATH_H
|
2019-09-16 21:29:47 +02:00
|
|
|
select ARCH_FLOAT_H
|
2012-11-10 17:06:01 +01:00
|
|
|
---help---
|
Sources and Docs: Fix typos and nxstyle issues
Documentation/contributing/coding_style.rst:
* Fix repeated words: ("this this").
* Remove trailing spaces.
boards/z80/z80/z80sim/README.txt:
* Fix repeated words: ("this this") and rewrap lines.
graphics/Kconfig,
libs/libc/math/Kconfig:
* Fix repeated words: ("this this").
arch/arm/src/armv7-a/arm_assert.c,
arch/arm/src/armv7-r/arm_assert.c,
arch/arm/src/imxrt/imxrt_enet.c,
arch/arm/src/kinetis/kinetis_enet.c,
arch/arm/src/kinetis/kinetis_flexcan.c,
arch/arm/src/s32k1xx/s32k1xx_enet.c,
arch/arm/src/s32k1xx/s32k1xx_flexcan.c,
arch/arm/src/stm32/stm32_pwm.c,
arch/arm/src/stm32h7/stm32_pwm.c,
arch/arm/src/stm32l4/stm32l4_pwm.c,
arch/renesas/src/rx65n/rx65n_usbdev.c,
binfmt/libnxflat/libnxflat_bind.c,
drivers/pipes/pipe_common.c,
net/igmp/igmp_input.c,
net/tcp/tcp_conn.c,
sched/sched/sched_roundrobin.c:
* Fix typo in comment ("this this").
arch/arm/src/cxd56xx/cxd56_usbdev.c,
arch/arm/src/lc823450/lc823450_usbdev.c:
* Fix typo in comment and rewrap lines.
arch/arm/src/imxrt/imxrt_usbdev.c,
arch/arm/src/stm32/stm32_dac.c,
arch/arm/src/stm32f0l0g0/stm32_pwm.c,
arch/arm/src/stm32f7/stm32_pwm.c,
arch/arm/src/tiva/lm/lm4f_gpio.h,
fs/nxffs/nxffs_write.c,
include/nuttx/analog/pga11x.h,
include/nuttx/usb/usbdev.h,
net/mld/mld_join.c:
* Fix typo in comment ("this this").
* Fix nxstyle issues.
2020-10-02 01:29:35 +02:00
|
|
|
By default, no math library will be provided by NuttX. In this
|
2019-09-16 21:29:47 +02:00
|
|
|
case, it is assumed that (1) no math library is required, or (2) you
|
|
|
|
will be using the math.h and float.h headers file and the libm
|
|
|
|
library provided by your toolchain.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
This is may be a very good choice is possible because your toolchain
|
|
|
|
may have have a highly optimized version of libm.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
Another possibility is that you have a custom, architecture-specific
|
2020-02-22 19:31:14 +01:00
|
|
|
math library and that the corresponding math.h file resides at
|
2019-09-16 21:29:47 +02:00
|
|
|
arch/<architecture>/include/math.h. The option is selected via
|
|
|
|
CONFIG_ARCH_MATH_H. If ARCH_MATH_H is selected,then the
|
|
|
|
include/nuttx/libmath.h header file will be copied to include/math.h
|
|
|
|
where it can be used by your applications.
|
2012-11-10 17:06:01 +01:00
|
|
|
|
2019-09-16 21:29:47 +02:00
|
|
|
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.
|
2017-02-10 17:04:56 +01:00
|
|
|
|
2023-04-22 13:08:00 +02:00
|
|
|
config LIBM_NEWLIB
|
|
|
|
bool "Math library from Newlib"
|
|
|
|
depends on !ARCH_MATH_H
|
|
|
|
---help---
|
|
|
|
Math library from Newlib
|
|
|
|
|
2023-04-27 14:14:39 +02:00
|
|
|
config LIBM_LIBMCS
|
|
|
|
bool "Math library from LibmCS"
|
|
|
|
depends on !ARCH_MATH_H
|
|
|
|
depends on ALLOW_BSD_COMPONENTS
|
|
|
|
---help---
|
|
|
|
Math library from libmcs
|
|
|
|
|
2023-04-24 14:32:13 +02:00
|
|
|
config LIBM_OPENLIBM
|
|
|
|
bool "Math library from openlibm"
|
|
|
|
depends on !ARCH_MATH_H
|
|
|
|
---help---
|
|
|
|
Math library from openlibm
|
|
|
|
|
2023-02-17 22:21:13 +01:00
|
|
|
config LIBM_TOOLCHAIN
|
|
|
|
bool "Math library from toolchain"
|
|
|
|
|
|
|
|
config LIBM_NONE
|
|
|
|
bool "No math library"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
if LIBM
|
|
|
|
source "libs/libm/libm/Kconfig"
|
|
|
|
endif
|
2023-04-22 13:08:00 +02:00
|
|
|
|
|
|
|
if LIBM_NEWLIB
|
|
|
|
source "libs/libm/newlib/Kconfig"
|
|
|
|
endif
|
2023-04-27 14:14:39 +02:00
|
|
|
|
|
|
|
if LIBM_LIBMCS
|
|
|
|
source "libs/libm/libmcs/Kconfig"
|
|
|
|
endif
|