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

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

commit 27e0811312423c459053552db1c86bbfb7676edf
Author: anjiahao <[email protected]>
AuthorDate: Fri Aug 29 10:05:06 2025 +0800

    elf:Delete unnecessary generation, elf does not use kernel api
    
    delete the mod_symtab.c generate procedure
    
    Signed-off-by: anjiahao <[email protected]>
---
 examples/elf/main/Makefile | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/examples/elf/main/Makefile b/examples/elf/main/Makefile
index 0cb59156b..074ea6a3d 100644
--- a/examples/elf/main/Makefile
+++ b/examples/elf/main/Makefile
@@ -30,12 +30,6 @@ MAINSRC = elf_main.c
 SYMTABSRC = test_symtab.c
 SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT))
 
-
-ifneq ($(CONFIG_BUILD_FLAT),y)
-  PASS1_SYMTAB = $(TOPDIR)/pass1/mod_symtab.c
-  MODLUE_NAME = tests
-endif
-
 $(SYMTABSRC):
        $(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) g_elf >[email protected]
        $(Q) $(call TESTANDREPLACEFILE, [email protected], $@)
@@ -82,15 +76,7 @@ $(FSIMG_OBJ): %$(OBJEXT): %.c
 
 endif
 
-# Copy the symbol table into the kernel pass1/ build directory
-
-ifneq ($(CONFIG_BUILD_FLAT),y)
-$(PASS1_SYMTAB): $(SYMTABSRC)
-       $(Q) install -m 0644 $(SYMTABSRC) $(PASS1_SYMTAB)
-       $(Q) mv $(BINDIR)$(DELIM)$(MODLUE_NAME) .
-endif
-
-postinstall:: $(ROMFSOBJ) $(SYMTABOBJ) $(FSIMG_OBJ) $(PASS1_SYMTAB)
+postinstall:: $(ROMFSOBJ) $(SYMTABOBJ) $(FSIMG_OBJ)
        $(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $^)
 
 distclean::

Reply via email to