This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch releases/12.10
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.10 by this push:
new 37380d2fbd docs: Add missing CFLAGS to the ELF guides
37380d2fbd is described below
commit 37380d2fbd96b54587ab08a6ea3f4e67516be2ec
Author: Niccolò Maggioni <[email protected]>
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 <[email protected]>
---
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