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

View File

@ -76,7 +76,7 @@ libmetal.zip:
)
touch $@
dirlinks:: .libmetal_headers
context:: .libmetal_headers
distclean::
$(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)))
touch $@
dirlinks:: .openamp_headers
context:: .openamp_headers
distclean::
$(call DELDIR, $(TOPDIR)$(DELIM)include$(DELIM)openamp$(DELIM))

View File

@ -159,6 +159,7 @@ endif
ifeq ($(CONFIG_OPENAMP),y)
KERNDEPDIRS += openamp
CONTEXTDIRS += openamp
else
CLEANDIRS += openamp
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
$(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks
# 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
$(Q) $(MAKE) -C boards dirlinks
$(Q) $(MAKE) -C openamp dirlinks
$(Q) $(MAKE) -C $(CONFIG_APPS_DIR) dirlinks
# context