mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 17:43:22 +08:00
arch/sim: Add dependencies for Rust cargo in make builds
Add `EXTRA_LIB_DEPS` to the simulator nuttx target prerequisites. This lets Make notice when an extra application library, such as a Rust static library rebuilt by Cargo, has changed and ensures the final simulator binary is relinked. Signed-off-by: Shoji Tokunaga <toku@mac.com>
This commit is contained in:
committed by
Alan C. Assis
parent
64f1962568
commit
db1035f820
@@ -362,6 +362,7 @@ $(foreach lib,$(notdir $(wildcard $(APPDIR)$(DELIM)staging$(DELIM)*$(LIBEXT))),
|
||||
|
||||
EXTRA_LIBS := $(filter-out $(NAMEFULL_LIBS) $(NAMESPEC_LIBS),$(EXTRA_LIBS))
|
||||
EXTRA_LIBS += $(wildcard $(APPDIR)$(DELIM)staging$(DELIM)*$(LIBEXT))
|
||||
EXTRA_LIB_DEPS := $(wildcard $(filter-out -%,$(EXTRA_LIBS)))
|
||||
|
||||
# Override in Make.defs if linker is not 'ld'
|
||||
|
||||
@@ -480,7 +481,7 @@ endef
|
||||
# stuff doesn't work there as we expect.
|
||||
# Note: _stext stuff is for CONFIG_CXX_INITIALIZE_SINIT, which in not
|
||||
# necessary for macOS.
|
||||
nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) $(HEADOBJ) $(LINKOBJS) $(HOSTOBJS) nuttx-names.dat
|
||||
nuttx$(EXEEXT): libarch$(LIBEXT) board/libboard$(LIBEXT) $(HEADOBJ) $(LINKOBJS) $(HOSTOBJS) nuttx-names.dat $(EXTRA_LIB_DEPS)
|
||||
$(Q) echo "LD: nuttx$(EXEEXT)"
|
||||
$(Q) $(LD) -r $(LDLINKFLAGS) $(RELPATHS) $(EXTRA_LIBPATHS) $(EXTRALINKCMDS) \
|
||||
-o nuttx.rel $(REQUIREDOBJS) $(LDSTARTGROUP) $(RELLIBS) $(EXTRA_LIBS) $(LDENDGROUP)
|
||||
|
||||
Reference in New Issue
Block a user