libs/libxx: Download C++ libraries during context.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-08-18 19:31:06 +02:00 committed by Xiang Xiao
parent 9732334b5d
commit 15fb70cb00
6 changed files with 7 additions and 6 deletions

View File

@ -58,7 +58,7 @@ OBJS = $(AOBJS) $(COBJS) $(CXXOBJS) $(CPPOBJS)
BIN = libxx$(LIBEXT)
all: $(BIN)
.PHONY: depend clean distclean dirlinks
.PHONY: depend clean distclean context
$(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
@ -75,7 +75,7 @@ $(CPPOBJS): %$(OBJEXT): %.cpp
$(BIN): $(OBJS)
$(call ARCHIVE, $@, $(OBJS))
dirlinks::
context::
makedepfile: $(CXXSRCS:.cxx=.ddx) $(CPPSRCS:.cpp=.ddp)
$(call CATFILE, Make.dep, $^)

View File

@ -33,7 +33,7 @@ libcxx: libcxx-$(VERSION).src.tar.xz
$(TOPDIR)/include/libcxx: libcxx
$(Q) $(DIRLINK) $(CURDIR)/libcxx/include $(TOPDIR)/include/libcxx
dirlinks:: $(TOPDIR)/include/libcxx
context:: $(TOPDIR)/include/libcxx
distclean::
$(Q) $(DELFILE) libcxx-$(VERSION).src.tar.xz

View File

@ -28,7 +28,7 @@ $(TOPDIR)/include/uClibc++:
$(Q) $(DIRLINK) $(CURDIR)/uClibc++/include $(TOPDIR)/include/uClibc++
$(Q) $(COPYFILE) $(CURDIR)/system_configuration.h $(TOPDIR)/include/uClibc++
dirlinks:: $(TOPDIR)/include/uClibc++
context:: $(TOPDIR)/include/uClibc++
distclean::
$(Q) $(DELFILE) $(TOPDIR)/include/uClibc++/system_configuration.h

View File

@ -97,6 +97,9 @@ endif
endif
CONTEXTDIRS += libs$(DELIM)libc
ifeq ($(CONFIG_HAVE_CXX),y)
CONTEXTDIRS += libs$(DELIM)libxx
endif
ifeq ($(CONFIG_NX),y)
KERNDEPDIRS += graphics

View File

@ -326,7 +326,6 @@ endif
$(Q) touch $@
dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $(ARCH_SRC)/chip drivers/platform
$(Q) $(MAKE) -C libs/libxx dirlinks
$(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks

View File

@ -305,7 +305,6 @@ endif
$(Q) touch $@
dirlinks: include\arch include\arch\board include\arch\chip $(ARCH_SRC)\board $(ARCH_SRC)\chip drivers\platform
$(Q) $(MAKE) -C libs/libxx dirlinks
$(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks