# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Node ID d61271ca62a33eb2b6ece118f538813c1d67042e
# Parent  0482a91e0c7823af93e8d0036a828bcc3bf04f42
Makefile changes for xen/ia64 with dom0 vp model needs.
xenLinux/ia64 with dom0 vp model needs arch/i386/kernel/swiotlb.o
PATCHNAME: lib_makefile

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 0482a91e0c78 -r d61271ca62a3 linux-2.6-xen-sparse/lib/Makefile
--- a/linux-2.6-xen-sparse/lib/Makefile	Fri Apr 28 11:10:17 2006 +0900
+++ b/linux-2.6-xen-sparse/lib/Makefile	Fri Apr 28 11:10:21 2006 +0900
@@ -47,6 +47,10 @@ obj-$(CONFIG_SWIOTLB) += swiotlb.o
 obj-$(CONFIG_SWIOTLB) += swiotlb.o
 ifneq ($(CONFIG_IA64),y)
 swiotlb-$(CONFIG_XEN) := ../arch/i386/kernel/swiotlb.o
+else
+ifeq ($(CONFIG_XEN_IA64_DOM0_VP),y)
+swiotlb-$(CONFIG_XEN) := ../arch/i386/kernel/swiotlb.o
+endif
 endif
 
 hostprogs-y	:= gen_crc32table