summaryrefslogtreecommitdiff
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)
downloadmtk-20170518-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.zip
mtk-20170518-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.tar.gz
mtk-20170518-65eec8bd5f6337956b972d07fde49eb5db9cb4a0.tar.bz2
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 77b04ae..1171c59 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