kvm: external module: Treat NONARCH_CONFIG as a list
PATCH 2/3 kvm: external module: Treat NONARCH_CONFIG as a list
From: Hollis Blanchard <[email protected]>
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 <[email protected]>
Signed-off-by Christian Ehrhardt <[email protected]>
---
[diffstat]
Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
[diff]
kernel/Makefile +2 -1
@@ -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))