From: Felix Fietkau Date: Wed, 20 Jan 2016 21:31:50 +0000 (+0000) Subject: build: add locking for downloads (fixes race conditions with multiple variants) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a81ad971df86f8c3b098a333ac868079ff279cc8;p=openwrt%2Fstaging%2Fdedeckeh.git build: add locking for downloads (fixes race conditions with multiple variants) Signed-off-by: Felix Fietkau SVN-Revision: 48416 --- diff --git a/include/download.mk b/include/download.mk index ca5eee4e02..ffde522923 100644 --- a/include/download.mk +++ b/include/download.mk @@ -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