summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-06-08 11:05:05 +0200
committerFelix Fietkau <nbd@nbd.name>2017-06-08 11:43:15 +0200
commit737b063cc2e562485e624cda0fb42fb47f1b90c7 (patch)
treebce351559623c3e517476383046ba8eca9eac2d8 /include
parent55623a9c83c8c21b25f55e63ba0b5672f074f486 (diff)
downloadmtk-20170518-737b063cc2e562485e624cda0fb42fb47f1b90c7.zip
mtk-20170518-737b063cc2e562485e624cda0fb42fb47f1b90c7.tar.gz
mtk-20170518-737b063cc2e562485e624cda0fb42fb47f1b90c7.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>
Diffstat (limited to 'include')
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 09aec79..5fbf5e2 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -176,7 +176,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