public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] kvm: external module: Treat NONARCH_CONFIG as a list
@ 2008-10-28  9:08 ehrhardt
  0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2008-10-28  9:08 UTC (permalink / raw)
  To: kvm-ppc, kvm, avi; +Cc: hollisb, ehrhardt

From: Hollis Blanchard <hollisb@us.ibm.com>

As discussed on the list the unifdef changes break powerpc (and more ?). A fix
is to treat NONARCH_CONFIG as a list instead of a single item.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---

[diffstat]
 Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

[diff]
diff --git a/kernel/Makefile b/kernel/Makefile
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -25,8 +25,9 @@
 	gawk -v version=$(version) -f $(ARCH_DIR)/hack-module.awk $1.orig \
 	    | sed '/\#include/! s/\blapic\b/l_apic/g' > $1 && rm $1.orig
 
+unifdef_uflags = $(foreach arch, $(NONARCH_CONFIG), -UCONFIG_$(arch))
 unifdef = mv $1 $1.orig && \
-	  unifdef -DCONFIG_$(ARCH_CONFIG) -UCONFIG_$(NONARCH_CONFIG) $1.orig > $1; \
+	  unifdef -DCONFIG_$(ARCH_CONFIG) $(unifdef_uflags) $1.orig > $1; \
           [ $$? -le 2 ] && rm $1.orig
 
 hack = $(call _hack,$T/$(strip $1))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-28  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28  9:08 [PATCH 2/3] kvm: external module: Treat NONARCH_CONFIG as a list ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox