package: ignore failed downloads with IGNORE_ERRORS

When IGNORE_ERROR is set, also skip broken downloads, this is required
to make a full "make download" run even if some upstream sources are
unreachable.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40768 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2014-05-14 15:49:22 +00:00
parent 5a8f0b0f4c
commit 574dc9ecf4
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ ifneq ($(IGNORE_ERRORS),)
package-n-filter := $(filter-out $(package-y) $(package-m),$(package-)) package-n-filter := $(filter-out $(package-y) $(package-m),$(package-))
package-ignore-errors := $(filter n m y,$(IGNORE_ERRORS)) package-ignore-errors := $(filter n m y,$(IGNORE_ERRORS))
package-ignore-errors := $(if $(package-ignore-errors),$(package-ignore-errors),n m) package-ignore-errors := $(if $(package-ignore-errors),$(package-ignore-errors),n m)
$(curdir)/builddirs-ignore-download := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))
$(curdir)/builddirs-ignore-compile := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter)) $(curdir)/builddirs-ignore-compile := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))
endif endif