From 14437420cdee2c2b03c6d03b09b94fc8c7f16165 Mon Sep 17 00:00:00 2001
From: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Tue, 2 Nov 2010 16:38:57 +0000
Subject: [PATCH] make IGNORE_ERRORS apply to deselected packages as well
 (typically triggered through dependencies)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23796 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/Makefile b/package/Makefile
index 5468bdc71..786edd49f 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -17,7 +17,7 @@ else
   $(curdir)/builddirs-install:=. $(sort $(package-y))
 endif
 ifneq ($(IGNORE_ERRORS),)
-  $(curdir)/builddirs-ignore-compile:= $(if $(filter m y, $(IGNORE_ERRORS)),$(foreach m,$(IGNORE_ERRORS),$(package-$(m))),$(package-m))
+  $(curdir)/builddirs-ignore-compile:= $(if $(filter n m y, $(IGNORE_ERRORS)),$(foreach m,$(IGNORE_ERRORS),$(package-$(subst n,,$(m)))),$(package-m) $(package-))
 endif
 
 $(curdir)/install:=$(curdir)/install-cleanup
-- 
2.20.1