aboutsummaryrefslogtreecommitdiffstats
path: root/include/toplevel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-16 11:20:17 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-16 11:20:26 +0200
commit470442ea0fb78333c92bea8e62a87a0cfaa6ba8c (patch)
tree5589a92003a85e6b0ad29ef737aa2a7b5ff957bc /include/toplevel.mk
parent34b05087f73dce512dd6df9f1b755bc70fd5b74a (diff)
downloadupstream-470442ea0fb78333c92bea8e62a87a0cfaa6ba8c.tar.gz
upstream-470442ea0fb78333c92bea8e62a87a0cfaa6ba8c.tar.bz2
upstream-470442ea0fb78333c92bea8e62a87a0cfaa6ba8c.zip
build: fix make download in the SDK
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r--include/toplevel.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 535ac0e065..7ef5c6186a 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -165,11 +165,14 @@ staging_dir/host/.prereq-build: include/prereq-build.mk
printdb: FORCE
@$(_SINGLE)$(NO_TRACE_MAKE) -p $@ V=99 DUMP_TARGET_DB=1 2>&1
+ifndef SDK
+ DOWNLOAD_DIRS = tools/download toolchain/download package/download target/download
+else
+ DOWNLOAD_DIRS = package/download
+endif
+
download: .config FORCE
- @+$(SUBMAKE) tools/download
- @+$(SUBMAKE) toolchain/download
- @+$(SUBMAKE) package/download
- @+$(SUBMAKE) target/download
+ @+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
clean dirclean: .config
@+$(SUBMAKE) -r $@