Build and Make Details¶
This is included for reference, and it’s not necessary to know all these details.
As described in Compiling, you use make at the root nuttx/ directory to build NuttX. This is also
referenced as $(TOPDIR) in the Makefile.
Root Directory¶
The $(TOPDIR) directory holds:
The top level
`Makefile<#topmakefile>`__ that controls the NuttX build.
That directory also holds:
Environment Variables¶
The specific environmental definitions
are unique for each board but should include, as a minimum,
updates to the PATH variable to include the full path to the
architecture-specific toolchain identified in
Make.defs.
First Time Make¶
Additional configuration actions will be taken the first time that system is built. These additional steps include:
Auto-generating the file
include/nuttx/config.husing the$(TOPDIR)/.configfile.Auto-generating the file
$(TOPDIR)/.versionwith version 0.0 if one does not exist.Auto-generating the file
include/nuttx/version.husing the$(TOPDIR)/.versionfile.Creating a link to
$(TOPDIR)/arch/<arch-name>/includeat$(TOPDIR)/include/arch.Creating a link to
$(TOPDIR)/boards/<arch-name>/<chip-name>/<board-name>/includeat$(TOPDIR)/include/arch/board.Creating a link to
$(TOPDIR)/boards/<arch-name>/<chip-name>/<board-name>/srcat$(TOPDIR)/arch/<arch-name>/src/boardCreating a link to
${APPDIR}/includeat$(TOPDIR)/include/appsCreating make dependencies.