aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-06-08 11:05:05 +0200
committerJo-Philipp Wich <jo@mein.io>2017-06-08 23:02:37 +0200
commit65eec8bd5f6337956b972d07fde49eb5db9cb4a0 (patch)
treeaf45fc85c41aaed72d1ac88aeb63a48194ffd6c3
parent4053c4f0fefe6bc4bee0b65cb8a187a75267293c (diff)
downloadupstream-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.tar.gz
upstream-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.tar.bz2
upstream-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.zip
build: ensure that flock is available for make download
It ensures that make download can parallelize downloads, even when some packages download the same files (e.g. gcc/initial, gcc/final) Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 77b04aea8a..1171c59093 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -171,7 +171,7 @@ else
DOWNLOAD_DIRS = package/download
endif
-download: .config FORCE
+download: .config FORCE $(if $(wildcard $(TOPDIR)/staging_dir/host/bin/flock),,tools/flock/compile)
@+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
clean dirclean: .config