build: fix make download in the SDK
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
34b05087f7
commit
470442ea0f
1 changed files with 7 additions and 4 deletions
|
@ -165,11 +165,14 @@ staging_dir/host/.prereq-build: include/prereq-build.mk
|
||||||
printdb: FORCE
|
printdb: FORCE
|
||||||
@$(_SINGLE)$(NO_TRACE_MAKE) -p $@ V=99 DUMP_TARGET_DB=1 2>&1
|
@$(_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
|
download: .config FORCE
|
||||||
@+$(SUBMAKE) tools/download
|
@+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
|
||||||
@+$(SUBMAKE) toolchain/download
|
|
||||||
@+$(SUBMAKE) package/download
|
|
||||||
@+$(SUBMAKE) target/download
|
|
||||||
|
|
||||||
clean dirclean: .config
|
clean dirclean: .config
|
||||||
@+$(SUBMAKE) -r $@
|
@+$(SUBMAKE) -r $@
|
||||||
|
|
Loading…
Reference in a new issue