From 27e0811312423c459053552db1c86bbfb7676edf Mon Sep 17 00:00:00 2001 From: anjiahao Date: Fri, 29 Aug 2025 10:05:06 +0800 Subject: [PATCH] elf:Delete unnecessary generation, elf does not use kernel api delete the mod_symtab.c generate procedure Signed-off-by: anjiahao --- 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 >$@.tmp $(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@) @@ -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::