libs/libc/math/Kconfig: Should select the NuttX float.h file automatically if the NuttX math library is selected.
This commit is contained in:
parent
a5a7fe2d8a
commit
ecb0b15fd0
10
COPYING
10
COPYING
@ -125,6 +125,16 @@ has a similar BSD style license:
|
|||||||
Copyright (c) 2001-2003, Adam Dunkels.
|
Copyright (c) 2001-2003, Adam Dunkels.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
|
Rhombus Math Library
|
||||||
|
====================
|
||||||
|
|
||||||
|
The math library used in NuttX derives from the Rhombus OS by Nick Johnson
|
||||||
|
(with many, many addtions). The Rhombus OS is/was distributed under the ISC
|
||||||
|
license. The ISC licsense is a permissive license that allows people do
|
||||||
|
anything with your code with proper attribution and without warranty. The
|
||||||
|
ISC license is functionally equivalent to the BSD 2-Clause and MIT licenses,
|
||||||
|
removing some language that is no longer necessary.
|
||||||
|
|
||||||
IGMP
|
IGMP
|
||||||
===
|
===
|
||||||
|
|
||||||
|
@ -9,23 +9,26 @@ config LIBM
|
|||||||
bool "Standard Math library"
|
bool "Standard Math library"
|
||||||
default n
|
default n
|
||||||
depends on !ARCH_MATH_H
|
depends on !ARCH_MATH_H
|
||||||
|
select ARCH_FLOAT_H
|
||||||
---help---
|
---help---
|
||||||
By default, no math library will be provided by NuttX. In this this case, it
|
By default, no math library will be provided by NuttX. In this this
|
||||||
is assumed that (1) no math library is required, or (2) you will be using the
|
case, it is assumed that (1) no math library is required, or (2) you
|
||||||
math.h header file and the libm library provided by your toolchain.
|
will be using the math.h and float.h headers file and the libm
|
||||||
|
library provided by your toolchain.
|
||||||
|
|
||||||
This is may be a very good choice is possible because your toolchain may have
|
This is may be a very good choice is possible because your toolchain
|
||||||
have a highly optimized version of libm.
|
may have have a highly optimized version of libm.
|
||||||
|
|
||||||
Another possibility is that you have a custom, architecture-specific math
|
Another possibility is that you have a custom, architecture-specific
|
||||||
libary and that the corresponding math.h file resides at arch/<architecture>/include/math.h.
|
math libary and that the corresponding math.h file resides at
|
||||||
The option is selected via ARCH_MATH_H. If ARCH_MATH_H is selected,then the
|
arch/<architecture>/include/math.h. The option is selected via
|
||||||
include/nuttx/libmath.h header file will be copied to include/math.h where it can
|
CONFIG_ARCH_MATH_H. If ARCH_MATH_H is selected,then the
|
||||||
be used by your applications.
|
include/nuttx/libmath.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,
|
If ARCH_MATH_H is not defined, then this option can be selected to
|
||||||
math library built into NuttX. This math library comes from the Rhombus OS and
|
build a generic, math library built into NuttX. This math library
|
||||||
was written by Nick Johnson. The Rhombus OS math library port was contributed by
|
comes from the Rhombus OS and was written by Nick Johnson. The
|
||||||
Darcy Gong.
|
Rhombus OS math library port was contributed by Darcy Gong.
|
||||||
|
|
||||||
#endmenu # Math Library Support
|
#endmenu # Math Library Support
|
||||||
|
@ -214,7 +214,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(NEED_MATH_H),y)
|
ifeq ($(NEED_MATH_H),y)
|
||||||
include\math.h: include\nuttx\math.h
|
include\math.h: include\nuttx\math.h
|
||||||
$(Q) cp -f include\nuttx\math.h include\math.h
|
$(Q) cp -pf include\nuttx\math.h include\math.h
|
||||||
else
|
else
|
||||||
include\math.h:
|
include\math.h:
|
||||||
endif
|
endif
|
||||||
@ -227,7 +227,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_FLOAT_H),y)
|
ifeq ($(CONFIG_ARCH_FLOAT_H),y)
|
||||||
include\float.h: include\nuttx\float.h
|
include\float.h: include\nuttx\float.h
|
||||||
$(Q) cp -f include\nuttx\float.h include\float.h
|
$(Q) cp -pf include\nuttx\float.h include\float.h
|
||||||
else
|
else
|
||||||
include\float.h:
|
include\float.h:
|
||||||
endif
|
endif
|
||||||
@ -239,7 +239,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_STDARG_H),y)
|
ifeq ($(CONFIG_ARCH_STDARG_H),y)
|
||||||
include\stdarg.h: include\nuttx\stdarg.h
|
include\stdarg.h: include\nuttx\stdarg.h
|
||||||
$(Q) cp -f include\nuttx\stdarg.h include\stdarg.h
|
$(Q) cp -pf include\nuttx\stdarg.h include\stdarg.h
|
||||||
else
|
else
|
||||||
include\stdarg.h:
|
include\stdarg.h:
|
||||||
endif
|
endif
|
||||||
@ -251,7 +251,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_SETJMP_H),y)
|
ifeq ($(CONFIG_ARCH_SETJMP_H),y)
|
||||||
include\setjmp.h: include\nuttx\setjmp.h
|
include\setjmp.h: include\nuttx\setjmp.h
|
||||||
$(Q) cp -f include\nuttx\setjmp.h include\setjmp.h
|
$(Q) cp -pf include\nuttx\setjmp.h include\setjmp.h
|
||||||
else
|
else
|
||||||
include\setjmp.h:
|
include\setjmp.h:
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user