This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ca7d89d74189ebf6cdcebed03e2cb77404b9a53a
Author: Saravanan Sekar <[email protected]>
AuthorDate: Thu Nov 5 15:34:20 2026 +0530

    arch/tricore: Use the assembly file extension of the toolchain.
    
    arch/tricore/src/Makefile still hardcodes .S for the assembly sources, so
    a TASKING .asm file there would not be assembled.  Use $(ASMEXT), as
    libs/libc/Makefile does.  The CMake build takes the sources by name, it
    needs no change.
    [skip-cmake-parity]
    
    Signed-off-by: Saravanan Sekar <[email protected]>
---
 arch/tricore/src/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/tricore/src/Makefile b/arch/tricore/src/Makefile
index dc4265db037..ee360b45dcd 100644
--- a/arch/tricore/src/Makefile
+++ b/arch/tricore/src/Makefile
@@ -51,7 +51,7 @@ STARTUP_OBJS ?= $(HEAD_COBJ)
 # Flat build or kernel-mode objects
 
 ASRCS = $(CHIP_ASRCS) $(CMN_ASRCS)
-AOBJS = $(ASRCS:.S=$(OBJEXT))
+AOBJS = $(ASRCS:$(ASMEXT)=$(OBJEXT))
 
 CSRCS = $(CHIP_CSRCS) $(CMN_CSRCS)
 COBJS = $(CSRCS:.c=$(OBJEXT))
@@ -62,7 +62,7 @@ OBJS = $(AOBJS) $(COBJS)
 # User-mode objects
 
 UASRCS = $(CHIP_UASRCS) $(CMN_UASRCS)
-UAOBJS = $(UASRCS:.S=$(OBJEXT))
+UAOBJS = $(UASRCS:$(ASMEXT)=$(OBJEXT))
 
 UCSRCS = $(CHIP_UCSRCS) $(CMN_UCSRCS)
 UCOBJS = $(UCSRCS:.c=$(OBJEXT))
@@ -129,7 +129,7 @@ all: $(HEAD_COBJ) $(BIN)
 
 .PHONY: board$(DELIM)libboard$(LIBEXT)
 
-$(AOBJS) $(UAOBJS): %$(OBJEXT): %.S
+$(AOBJS) $(UAOBJS): %$(OBJEXT): %$(ASMEXT)
        $(call ASSEMBLE, $<, $@)
 
 $(COBJS) $(UCOBJS) $(HEAD_COBJ): %$(OBJEXT): %.c
@@ -199,7 +199,7 @@ endif
 
 # Dependencies
 
-makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
+makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:$(ASMEXT)=.dds)
        $(call CATFILE, Make.dep, $^)
        $(call DELFILE, $^)
 
@@ -229,7 +229,7 @@ distclean:: clean
 ifeq ($(BOARDMAKE),y)
        $(Q) $(MAKE) -C board distclean
 endif
-       $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds))
+       $(call DELFILE, $(CSRCS:.c=.ddc) $(ASRCS:$(ASMEXT)=.dds))
        $(call DELFILE, Make.dep)
        $(call DELFILE, .depend)
 

Reply via email to