tools: Fix an issue that libboard.a is not exported

If CONFIG_ARCH_BOARD_COMMON is enabled, libboard.a should be generated.
Fix an issue it is not built with make export.
This commit is contained in:
SPRESENSE 2022-10-19 19:55:48 +09:00 committed by Petro Karashchenko
parent a31316cab5
commit 10a5c660f2
4 changed files with 24 additions and 0 deletions

View File

@ -132,6 +132,12 @@ ifeq ($(CONFIG_OPENAMP),y)
NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
endif
# Add libraries for board common support
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
NUTTXLIBS += staging$(DELIM)libboard$(LIBEXT)
endif
# Export all libraries
EXPORTLIBS = $(NUTTXLIBS)

View File

@ -118,6 +118,12 @@ ifeq ($(CONFIG_OPENAMP),y)
NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
endif
# Add libraries for board common support
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
NUTTXLIBS += staging$(DELIM)libboard$(LIBEXT)
endif
# Export only the user libraries
EXPORTLIBS = $(USERLIBS)

View File

@ -73,6 +73,12 @@ boards$(DELIM)libboards$(LIBEXT): pass2dep
staging$(DELIM)libboards$(LIBEXT): boards$(DELIM)libboards$(LIBEXT)
$(Q) $(call INSTALL_LIB,$<,$@)
$(ARCH_SRC)$(DELIM)board$(DELIM)libboard$(LIBEXT): pass2dep
$(Q) $(MAKE) -C $(ARCH_SRC)/board libboard$(LIBEXT) EXTRAFLAGS="$(KDEFINE) $(EXTRAFLAGS)"
staging$(DELIM)libboard$(LIBEXT): $(ARCH_SRC)$(DELIM)board$(DELIM)libboard$(LIBEXT)
$(Q) $(call INSTALL_LIB,$<,$@)
crypto$(DELIM)libcrypto$(LIBEXT): pass2dep
$(Q) $(MAKE) -C crypto libcrypto$(LIBEXT) EXTRAFLAGS="$(KDEFINE) $(EXTRAFLAGS)"

View File

@ -132,6 +132,12 @@ ifeq ($(CONFIG_OPENAMP),y)
NUTTXLIBS += staging$(DELIM)libopenamp$(LIBEXT)
endif
# Add libraries for board common support
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
NUTTXLIBS += staging$(DELIM)libboard$(LIBEXT)
endif
# Export only the user libraries
EXPORTLIBS = $(USERLIBS)