diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 21:31:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 21:31:50 +0000 |
commit | a81ad971df86f8c3b098a333ac868079ff279cc8 (patch) | |
tree | 915ce56ff7264799a52f897e10a07fa251368623 /include/download.mk | |
parent | 8977571d7f4624f0056a7805899a02028f71786c (diff) | |
download | mtk-20170518-a81ad971df86f8c3b098a333ac868079ff279cc8.zip mtk-20170518-a81ad971df86f8c3b098a333ac868079ff279cc8.tar.gz mtk-20170518-a81ad971df86f8c3b098a333ac868079ff279cc8.tar.bz2 |
build: add locking for downloads (fixes race conditions with multiple variants)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48416
Diffstat (limited to 'include/download.mk')
-rw-r--r-- | include/download.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/download.mk b/include/download.mk index ca5eee4..ffde522 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 |