openamp: Move the download to context target

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-08-29 22:32:27 +08:00 committed by Abdelatif Guettouche
parent e89933d02a
commit a941c93f72
6 changed files with 5 additions and 6 deletions

View File

@ -34,7 +34,7 @@ OBJS = $(AOBJS) $(COBJS)
BIN = libopenamp$(LIBEXT) BIN = libopenamp$(LIBEXT)
all: $(BIN) all: $(BIN)
.PHONY: context depend clean distclean dirlinks .PHONY: context depend clean distclean
$(AOBJS): %$(OBJEXT): %.S $(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@) $(call ASSEMBLE, $<, $@)
@ -45,7 +45,7 @@ $(COBJS): %$(OBJEXT): %.c
$(BIN): $(OBJS) $(BIN): $(OBJS)
$(call ARCHIVE, $@, $(OBJS)) $(call ARCHIVE, $@, $(OBJS))
dirlinks:: context::
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds) makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
$(call CATFILE, Make.dep, $^) $(call CATFILE, Make.dep, $^)

View File

@ -76,7 +76,7 @@ libmetal.zip:
) )
touch $@ touch $@
dirlinks:: .libmetal_headers context:: .libmetal_headers
distclean:: distclean::
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)metal) $(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)metal)

View File

@ -43,7 +43,7 @@ open-amp.zip:
$(foreach header,$(headers),$(shell cp -rf $(header) $(TOPDIR)$(DELIM)include$(DELIM)openamp$(DELIM))) $(foreach header,$(headers),$(shell cp -rf $(header) $(TOPDIR)$(DELIM)include$(DELIM)openamp$(DELIM)))
touch $@ touch $@
dirlinks:: .openamp_headers context:: .openamp_headers
distclean:: distclean::
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)openamp$(DELIM)) $(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)openamp$(DELIM))

View File

@ -159,6 +159,7 @@ endif
ifeq ($(CONFIG_OPENAMP),y) ifeq ($(CONFIG_OPENAMP),y)
KERNDEPDIRS += openamp KERNDEPDIRS += openamp
CONTEXTDIRS += openamp
else else
CLEANDIRS += openamp CLEANDIRS += openamp
endif endif

View File

@ -327,7 +327,6 @@ endif
dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $(ARCH_SRC)/chip drivers/platform dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $(ARCH_SRC)/chip drivers/platform
$(Q) $(MAKE) -C boards dirlinks $(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks $(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks
# context # context

View File

@ -306,7 +306,6 @@ endif
dirlinks: include\arch include\arch\board include\arch\chip $(ARCH_SRC)\board $(ARCH_SRC)\chip drivers\platform dirlinks: include\arch include\arch\board include\arch\chip $(ARCH_SRC)\board $(ARCH_SRC)\chip drivers\platform
$(Q) $(MAKE) -C boards dirlinks $(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks $(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks
# context # context