build: add locking for downloads (fixes race conditions with multiple variants)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48416
master
Felix Fietkau 9 years ago
parent 8977571d7f
commit a81ad971df
  1. 2
      include/download.mk

@ -182,6 +182,6 @@ define Download
$(DL_DIR)/$(FILE): $(DL_DIR)/$(FILE):
mkdir -p $(DL_DIR) mkdir -p $(DL_DIR)
$(if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/unknown)) $(call locked,$(if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/unknown)),$(FILE))
endef endef

Loading…
Cancel
Save