Skip to content

Commit e09c8e5

Browse files
tinnedkarmalinguini1
authored andcommitted
Documentation/Make: add implementation/make_build_system.rst
This commit adds initial high level overview of the NuttX make-based build system. It documents: * Tools used during the build process * Mechanisms set in place during the build process Signed-off-by: Luchian Mihai <[email protected]>
1 parent b2b0452 commit e09c8e5

File tree

4 files changed

+616
-13
lines changed

4 files changed

+616
-13
lines changed

Documentation/components/tools/index.rst

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ cmpconfig.c
1313
This C file can be used to build a utility for comparing two NuttX
1414
configuration files.
1515

16-
Config.mk
17-
---------
18-
19-
Config.mk contains common definitions used by many configuration files.
20-
This file (along with <nuttx>/.config) must be included at the top of
21-
each configuration-specific Make.defs file like::
22-
23-
include $(TOPDIR)/.config
24-
include $(TOPDIR)/tools/Config.mk
25-
26-
Subsequent logic within the configuration-specific Make.defs file may then
27-
override these default definitions as necessary.
28-
2916
checkpatch.sh
3017
-------------
3118

@@ -740,6 +727,8 @@ these problems::
740727
- option env="APPSDIR"
741728
+ default "../apps"
742729

730+
.. _build_system_linking:
731+
743732
link.sh, link.bat, copydir.sh, copydir.bat, unlink.sh, and unlink.bat
744733
---------------------------------------------------------------------
745734

@@ -780,6 +769,8 @@ this case. link.bat will attempt to create a symbolic link using the
780769
NTFS mklink.exe command instead of copying files. That logic, however,
781770
has not been verified as of this writing.
782771

772+
.. _makefile_host:
773+
783774
Makefile.host
784775
-------------
785776

@@ -801,6 +792,8 @@ may be mounted under /etc in the NuttX pseudo file system.
801792
TIP: Edit the resulting header file and mark the generated data values
802793
as 'const' so that they will be stored in FLASH.
803794

795+
.. _mkdeps:
796+
804797
mkdeps.c, cnvwindeps.c, mkwindeps.sh, and mknulldeps.sh
805798
-------------------------------------------------------
806799

Documentation/guides/versioning_and_task_names.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Answer
3333

3434
This is probably normal behavior. There are two separate, unrelated issues here.
3535

36+
.. _versioning:
37+
3638
Versioning
3739
----------
3840

Documentation/implementation/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Implementation Details
66
:maxdepth: 2
77
:caption: Contents:
88

9+
make_build_system.rst
910
drivers_design.rst
1011
device_drivers.rst
1112
processes_vs_tasks.rst

0 commit comments

Comments
 (0)