From 52e3a18dbb7cb979ab75487160049d2e71fdd49f Mon Sep 17 00:00:00 2001 From: liwenxiang1 Date: Sun, 13 Oct 2024 22:34:13 +0800 Subject: [PATCH] arch/x86_64:Adjust the position of the nm command to execute it after NuttX is generated Signed-off-by: liwenxiang1 --- arch/x86_64/src/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86_64/src/Makefile b/arch/x86_64/src/Makefile index 973de0fa8e1f9..9039c91f93785 100644 --- a/arch/x86_64/src/Makefile +++ b/arch/x86_64/src/Makefile @@ -151,12 +151,6 @@ $(addsuffix .tmp,$(ARCHSCRIPT)): $(ARCHSCRIPT) nuttx$(EXEEXT): $(HEAD_OBJ) board/libboard$(LIBEXT) $(addsuffix .tmp,$(ARCHSCRIPT)) @echo "LD: nuttx$(EXEEXT)" -ifneq ($(CONFIG_WINDOWS_NATIVE),y) - $(Q) $(NM) $(NUTTX) | \ - grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ - sort > $(TOPDIR)/System.map -endif - ifeq ($(CONFIG_ALLSYMS)$(CONFIG_MM_KASAN_GLOBAL),) $(Q) $(LD) $(LDFLAGS) $(LIBPATHS) $(EXTRA_LIBPATHS) \ -o $(NUTTX) $(HEAD_OBJ) $(EXTRA_OBJS) \ @@ -169,6 +163,12 @@ else endif $(Q) $(call DELFILE, $(addsuffix .tmp,$(ARCHSCRIPT))) +ifneq ($(CONFIG_WINDOWS_NATIVE),y) + $(Q) $(NM) $(NUTTX) | \ + grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ + sort > $(TOPDIR)/System.map +endif + ifeq ($(CONFIG_ARCH_MULTIBOOT1),y) @echo "Generating: nuttx32 in ELF32/multiboot1" $(Q) $(OBJCOPY) -R.realmode -R.note.* -O binary $(NUTTX) $(NUTTX).bin \