Nuttx Operating System
Porting Guide
by
Gregory Nutt
Last Update: February 8, 2007
Overview This document provides and overview of the Nuttx build and configuration logic and provides hints for the incorporation of new processor/board archectures into the build.
See also arch/README.txt.
General Philosophy.
The general directly layout for Nuttx is very similar to the directory structure of the Linux kernel -- at least at the most superficial layers. At the top level is the main makefile and a series of sub-directories identified below and discussed in the following paragraphs:
.
|-- Makefile
|-- Documentation
| `-- (documentation files)
|-- arch
| |-- (architecture)
| | |-- Make.defs
| | |-- defconfig
| | |-- include
| | |-- setenv.sh
| | `-- src
| `-- (other architectures)
|-- drivers
| |-- Makefile
| `-- (driver source files)
|-- examples
| `-- (example)
| |-- Makefile
| `-- (example source files)
|-- fs
| |-- Makefile
| `-- (fs source files)
|-- include
| |-- (standard header files)
| |-- nuttx
| | `-- (nuttx specific header files)
| `- sys
| | `-- (more standard header files)
|-- lib
| |-- Makefile
| `-- (lib source files)
|-- mm
| |-- Makefile
| `-- (mm source files)
|-- sched
| |-- Makefile
| `-- (sched source files)
`-- tools
|-- Makefile.mkconfig
|-- configure.sh
|-- mkconfig.c
|-- mkdeps.sh
`-- zipme