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

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

SVN-Revision: 48416
lede-17.01
Felix Fietkau 2016-01-20 21:31:50 +00:00
parent 8977571d7f
commit a81ad971df
1 changed files with 1 additions and 1 deletions

View File

@ -182,6 +182,6 @@ define Download
$(DL_DIR)/$(FILE):
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