Skip to content

Commit

Permalink
arch/x86_64:Adjust the position of the nm command to execute it after…
Browse files Browse the repository at this point in the history
… NuttX is generated

Signed-off-by: liwenxiang1 <[email protected]>
  • Loading branch information
xianglyc committed Oct 14, 2024
1 parent 11e0262 commit b1e443a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/x86_64/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand All @@ -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 \
Expand Down

0 comments on commit b1e443a

Please sign in to comment.