Skip to contentSkip to conversation

another header dependency fix

PATCH New Jan Beulich 1 participant 1 message Nov 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 another header dependency fix

xen/arch/powerpc/Rules.mk +2 -1
Index: 2007-11-13/xen/arch/powerpc/Rules.mk
===================================================================
@@ -12,7 +12,6 @@ C_WARNINGS += -Wpacked
 CFLAGS += -m64 -ffreestanding -fno-builtin -fno-common
 CFLAGS += -iwithprefix include -Werror -pipe
 CFLAGS += -I$(BASEDIR)/include
-CFLAGS += -I$(BASEDIR)/include/asm-powerpc/mach-generic
 CFLAGS += -I$(BASEDIR)/include/asm-powerpc/mach-default
 CFLAGS += $(C_WARNINGS)
 CFLAGS += -msoft-float -O2
@@ -33,6 +32,8 @@ LDFLAGS += -m elf64ppc
 		--redefine-sym _binary_$*_bin_size=$*_size \
 		$< $@
 
+HDRS += $(wildcard $(BASEDIR)/include/asm-powerpc/mach-*/*.h)
+
 # Test for at least GCC v3.2.x.
 gcc-ver = $(shell $(CC) -dumpversion | sed -e 's/^\(.\)\.\(.\)\.\(.\)/\$(1)/')
 ifeq ($(call gcc-ver,1),1)
xen/arch/x86/Rules.mk +1 -0
Index: 2007-11-13/xen/arch/x86/Rules.mk
===================================================================
@@ -57,6 +57,7 @@ endif
 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/*.h)
 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/svm/*.h)
 HDRS += $(wildcard $(BASEDIR)/include/asm-x86/hvm/vmx/*.h)
+HDRS += $(wildcard $(BASEDIR)/include/asm-x86/mach-*/*.h)
 
 # Require GCC v3.4+ (to avoid issues with alignment constraints in Xen headers)
 $(call cc-ver-check,CC,0x030400,"Xen requires at least gcc-3.4")