This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d651726b5799be289fd761db0c6ae96b7a65c827 Author: Niccolò Maggioni <nicco.maggi...@gmail.com> AuthorDate: Tue Jun 10 22:32:40 2025 +0200 docs: Add missing CFLAGS to the ELF guides As reported in apache/nuttx-apps#1828 Signed-off-by: Niccolò Maggioni <nicco.maggioni+nu...@gmail.com> --- Documentation/guides/fully_linked_elf.rst | 2 +- Documentation/guides/partially_linked_elf.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/guides/fully_linked_elf.rst b/Documentation/guides/fully_linked_elf.rst index b00f3df0c4..4fe60c8322 100644 --- a/Documentation/guides/fully_linked_elf.rst +++ b/Documentation/guides/fully_linked_elf.rst @@ -209,7 +209,7 @@ Below is the ``Makefile`` used to create the ELF program: ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer ARCHINCLUDES = -I. -isystem nuttx-export-7.25/include - CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe + CFLAGS = $(ARCHCPUFLAGS) $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe CROSSDEV = arm-none-eabi- CC = $(CROSSDEV)gcc diff --git a/Documentation/guides/partially_linked_elf.rst b/Documentation/guides/partially_linked_elf.rst index bade7df974..8ab0d7502c 100644 --- a/Documentation/guides/partially_linked_elf.rst +++ b/Documentation/guides/partially_linked_elf.rst @@ -241,7 +241,7 @@ The Makefile used to create the ELF program is as follows: ARCHOPTIMIZATION = -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer ARCHINCLUDES = -I. -isystem nuttx-export-7.25/include - CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe + CFLAGS = $(ARCHCPUFLAGS) $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHINCLUDES) -pipe CROSSDEV = arm-none-eabi- CC = $(CROSSDEV)gcc