This is an automated email from the ASF dual-hosted git repository.
archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new def0092f7b9 arch/tricore: Allow Make to gen .srec and .hex for tasking
compiler
def0092f7b9 is described below
commit def0092f7b928443724591233123421f4bef35e1
Author: wangchengdong <[email protected]>
AuthorDate: Thu Sep 25 14:19:02 2025 +0800
arch/tricore: Allow Make to gen .srec and .hex for tasking compiler
Allow Make to gen .srec and .hex for tasking compiler
Signed-off-by: Chengdong Wang <[email protected]>
---
arch/tricore/src/common/ToolchainTasking.defs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/arch/tricore/src/common/ToolchainTasking.defs
b/arch/tricore/src/common/ToolchainTasking.defs
index 26bf4c43c41..d01f5292217 100644
--- a/arch/tricore/src/common/ToolchainTasking.defs
+++ b/arch/tricore/src/common/ToolchainTasking.defs
@@ -108,9 +108,17 @@ LDFLAGS += --no-default-libraries
LDFLAGS += --fp-model=2
LDFLAGS += -lfp_fpu
-LDFLAGS += --hex-format=s -Wl-OtxYcL -Wl-mcrfiklsmnoduq
+LDFLAGS += -Wl-OtxYcL -Wl-mcrfiklsmnoduq
LDFLAGS += -lrt
+ifeq ($(CONFIG_INTELHEX_BINARY),y)
+ LDFLAGS += -Wl-o${TOPDIR}/nuttx.hex:IHEX:4 --hex-format=s
+endif
+
+ifeq ($(CONFIG_MOTOROLA_SREC),y)
+ LDFLAGS += -Wl-o${TOPDIR}/nuttx.srec:SREC:4
+endif
+
# ctc W500: ["stdio/lib_libvsprintf.c" 884/29] expression without effect
# ctc W507: ["mm_heap/mm_malloc.c" 238/64] variable "nodesize" is possibly
uninitialized
# ctc W508: ["misc/lib_impure.c" 1/1] empty source file