You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/07/11 18:06:20 UTC

[incubator-nuttx] 03/04: arch/sim: Move the generation of nuttx-names.dat into nuttx target

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

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

commit 19aaf7b357db906b106af6c9019026721ac72ad2
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Fri Jul 10 12:00:56 2020 +0800

    arch/sim: Move the generation of nuttx-names.dat into nuttx target
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
    Change-Id: I04c612a56caee170742b07f87cea1b7feb4078c5
---
 arch/sim/src/Makefile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile
index 4042337..d460162 100644
--- a/arch/sim/src/Makefile
+++ b/arch/sim/src/Makefile
@@ -276,15 +276,12 @@ board/libboard$(LIBEXT):
 
 # A partially linked object containing only NuttX code (no interface to host OS)
 # Change the names of most symbols that conflict with libc symbols.
-
-nuttx-names.dat: nuttx-names.in
-	$(call PREPROCESS, $<, $@)
-
 # Generate the final NuttX binary by linking the host-specific objects with the NuttX
 # specific objects (with munged names)
 
-nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) nuttx-names.dat $(LINKOBJS) $(HOSTOBJS)
+nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) $(LINKOBJS) $(HOSTOBJS)
 	$(Q) echo "LD:  nuttx$(EXEEXT)"
+	$(call PREPROCESS, nuttx-names.in, nuttx-names.dat)
 	$(Q) $(LD) -r $(LDLINKFLAGS) $(RELPATHS) $(EXTRA_LIBPATHS) -o nuttx.rel $(REQUIREDOBJS) $(LDSTARTGROUP) $(RELLIBS) $(EXTRA_LIBS) $(LDENDGROUP) $(LDUNEXPORTSYMBOLS)
 ifneq ($(HOSTOS),Darwin)
 	$(Q) $(OBJCOPY) --redefine-syms=nuttx-names.dat nuttx.rel