diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-07 14:08:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-07 14:08:37 +0000 |
commit | d4f815f5cd39cc0c1730f2e3131540b99ea0d921 (patch) | |
tree | 0757b55e583be618fe5eae3079126af82845d33d /nuttx/README.txt | |
parent | 5c29bff3aecd7f807c5e5e4bcc7b86a99cad44db (diff) | |
download | px4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.tar.gz px4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.tar.bz2 px4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.zip |
Move include/math.h to include/nuttx/math.h
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4568 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/README.txt')
-rwxr-xr-x | nuttx/README.txt | 24 |
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 ^^^^^^^^^^^^^^^^^ |