Skip to content

Commit f7fadd0

Browse files
anjiahao1extinguish
authored andcommitted
elf:Delete unnecessary generation, elf does not use kernel api
delete the mod_symtab.c generate procedure Signed-off-by: anjiahao <[email protected]>
1 parent 02165fe commit f7fadd0

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

examples/elf/main/Makefile

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ MAINSRC = elf_main.c
3030
SYMTABSRC = test_symtab.c
3131
SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT))
3232

33-
34-
ifneq ($(CONFIG_BUILD_FLAT),y)
35-
PASS1_SYMTAB = $(TOPDIR)/pass1/mod_symtab.c
36-
MODLUE_NAME = tests
37-
endif
38-
3933
$(SYMTABSRC):
4034
$(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) g_elf >$@.tmp
4135
$(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@)
@@ -82,15 +76,7 @@ $(FSIMG_OBJ): %$(OBJEXT): %.c
8276

8377
endif
8478

85-
# Copy the symbol table into the kernel pass1/ build directory
86-
87-
ifneq ($(CONFIG_BUILD_FLAT),y)
88-
$(PASS1_SYMTAB): $(SYMTABSRC)
89-
$(Q) install -m 0644 $(SYMTABSRC) $(PASS1_SYMTAB)
90-
$(Q) mv $(BINDIR)$(DELIM)$(MODLUE_NAME) .
91-
endif
92-
93-
postinstall:: $(ROMFSOBJ) $(SYMTABOBJ) $(FSIMG_OBJ) $(PASS1_SYMTAB)
79+
postinstall:: $(ROMFSOBJ) $(SYMTABOBJ) $(FSIMG_OBJ)
9480
$(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $^)
9581

9682
distclean::

0 commit comments

Comments
 (0)