aboutsummaryrefslogtreecommitdiffstats
path: root/include/toplevel.mk
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/toplevel.mk
parent55623a9c83c8c21b25f55e63ba0b5672f074f486 (diff)
downloadupstream-737b063cc2e562485e624cda0fb42fb47f1b90c7.tar.gz
upstream-737b063cc2e562485e624cda0fb42fb47f1b90c7.tar.bz2
upstream-737b063cc2e562485e624cda0fb42fb47f1b90c7.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>
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r--include/toplevel.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 09aec791ba..5fbf5e2ea4 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