aboutsummaryrefslogtreecommitdiff
path: root/nuttx/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-07 14:08:37 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-07 14:08:37 +0000
commit36e37f5da4d016e033006db34bc8abad1d299b5d (patch)
tree0757b55e583be618fe5eae3079126af82845d33d /nuttx/README.txt
parent2ac0dff544582a43ec516a7f3f56f14916362d33 (diff)
downloadpx4-firmware-36e37f5da4d016e033006db34bc8abad1d299b5d.tar.gz
px4-firmware-36e37f5da4d016e033006db34bc8abad1d299b5d.tar.bz2
px4-firmware-36e37f5da4d016e033006db34bc8abad1d299b5d.zip
Move include/math.h to include/nuttx/math.h
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4568 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/README.txt')
-rwxr-xr-xnuttx/README.txt24
1 files changed, 17 insertions, 7 deletions
diff --git a/nuttx/README.txt b/nuttx/README.txt
index 5c3ec5683..47e50a870 100755
--- a/nuttx/README.txt
+++ b/nuttx/README.txt
@@ -128,8 +128,8 @@ Notes about Header Files:
Header Files Provided by Your Toolchain.
- Certain header files, such as setjmp.h and varargs.h, may still be
- needed from your toolchain and your compiler may not, however, be able
+ Certain header files, such as setjmp.h, stdargs.h, and math.h, may still
+ be needed from your toolchain and your compiler may not, however, be able
to find these if you compile NuttX without using standard header file.
If that is the case, one solution is to copy those header file from
your toolchain into the NuttX include directory.
@@ -148,11 +148,21 @@ Notes about Header Files:
Even though you should not use a foreign C-Library, you may still need
to use other, external libraries with NuttX. In particular, you may
need to use the math library, libm.a. The math libary header file,
- math.h, is a special case. A stub math.h header file is included at
- nuttx/include/math.h. This stub header file can be used to "redirect"
- the inclusion to an architecture-specific math.h header file. But, if
- you need your toolchain's math.h header file, the simplest thing to do
- is probably to just remove the nuttx/include/math.h header file.
+ math.h, is a special case. If you do nothing, the standard math.h
+ header file that is provided with your toolchain will be used.
+
+ If you have a custom, architecture specific math.h header file, then
+ that header file should be placed at arch/<cpu>/include/math.h. There
+ is a stub math.h header file located at include/nuttx/math.h. This stub
+ header file can be used to "redirect" the inclusion to an architecture-
+ specific math.h header file. If you add an architecture specific math.h
+ header file then you should also define CONFIG_ARCH_MATH_H=y in your
+ NuttX Configuration file. If CONFIG_ARCH_MATH_H is selected, then the
+ top-level Makefile will copy the stub math.h header file from
+ include/nuttx/matn.h to include/math.h where it will become the system
+ math.h header file. The stub math.h header file does nothing other
+ than to include that archicture-specific math.h header file as the
+ system math.h header file.
CONFIGURING NUTTX
^^^^^^^^^^^^^^^^^