* [PATCH] Fix build issue for IA64
@ 2008-08-12 0:33 Zhang, Xiantao
2008-08-12 13:54 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2008-08-12 0:33 UTC (permalink / raw)
To: kvm, kvm-ia64; +Cc: Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 2390 bytes --]
>From 40df689b23263ffe2f2efed9950700d42f985b29 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Tue, 12 Aug 2008 08:15:10 +0800
Subject: [PATCH] KVM:Userspace: Fix build issue for IA64.
1. Generating asm-offset.h @ build time with host kernel
2. "Make -C user" doesn't support for ia64 now.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 4 ++--
kernel/ia64/Makefile.pre | 6 +++---
kvm.spec | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index 0d5d148..e5f43a2 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -33,7 +33,7 @@ hack-files-ia64 =
hack-files = $(hack-files-$(ARCH_DIR))
-all:: header-link
+all:: header-link prerequisite
# include header priority 1) $LINUX 2) $KERNELDIR 3)
include-compat
$(MAKE) -C $(KERNELDIR) M=`pwd` \
LINUXINCLUDE="-I`pwd`/include -Iinclude
-I`pwd`/include-compat \
@@ -41,7 +41,7 @@ all:: header-link
-include `pwd`/$(ARCH_DIR)/external-module-compat.h"
"$$@"
-sync: header-sync source-sync header-link prerequisite
+sync: header-sync source-sync header-link
header-link:
rm -f include/asm
diff --git a/kernel/ia64/Makefile.pre b/kernel/ia64/Makefile.pre
index 484fe80..033bdee 100644
--- a/kernel/ia64/Makefile.pre
+++ b/kernel/ia64/Makefile.pre
@@ -1,6 +1,6 @@
prerequisite: asm-offsets.h ia64/memset.S ia64/memcpy.S
- cp -f $(LINUX)/arch/ia64/lib/memcpy.S ia64/memcpy.S
- cp -f $(LINUX)/arch/ia64/lib/memset.S ia64/memset.S
+ cp -f $(KERNELDIR)/arch/ia64/lib/memcpy.S ia64/memcpy.S
+ cp -f $(KERNELDIR)/arch/ia64/lib/memset.S ia64/memset.S
cmp -s asm-offset.h ia64/asm-offset.h || mv -f asm-offsets.*
ia64/
asm-offsets.h: asm-offsets.s
@@ -20,4 +20,4 @@ asm-offsets.h: asm-offsets.s
echo "#endif") <$< >$@
asm-offsets.s: ia64/asm-offsets.c
- gcc -S -D__KERNEL__ -I$(LINUX)/include -I./include
ia64/asm-offsets.c
+ gcc -S -D__KERNEL__ -I$(KERNELDIR)/include -I./include
ia64/asm-offsets.c
diff --git a/kvm.spec b/kvm.spec
index 92acb0e..f6ae869 100644
--- a/kvm.spec
+++ b/kvm.spec
@@ -81,8 +81,8 @@ rm -rf %{buildroot}
cd ..
./configure --prefix=/usr/kvm %{qemuldflags}
make -C libkvm
-make -C user
%ifarch i386 x86_64
+make -C user
make extboot
%endif
#(cd qemu;
--
1.5.1
[-- Attachment #2: 0001-KVM-Userspace-Fix-build-issue-for-IA64.patch --]
[-- Type: application/octet-stream, Size: 2314 bytes --]
From 40df689b23263ffe2f2efed9950700d42f985b29 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Tue, 12 Aug 2008 08:15:10 +0800
Subject: [PATCH] KVM:Userspace: Fix build issue for IA64.
1. Generating asm-offset.h @ build time with host kernel
2. "Make -C user" doesn't support for ia64 now.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 4 ++--
kernel/ia64/Makefile.pre | 6 +++---
kvm.spec | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index 0d5d148..e5f43a2 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -33,7 +33,7 @@ hack-files-ia64 =
hack-files = $(hack-files-$(ARCH_DIR))
-all:: header-link
+all:: header-link prerequisite
# include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat
$(MAKE) -C $(KERNELDIR) M=`pwd` \
LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
@@ -41,7 +41,7 @@ all:: header-link
-include `pwd`/$(ARCH_DIR)/external-module-compat.h"
"$$@"
-sync: header-sync source-sync header-link prerequisite
+sync: header-sync source-sync header-link
header-link:
rm -f include/asm
diff --git a/kernel/ia64/Makefile.pre b/kernel/ia64/Makefile.pre
index 484fe80..033bdee 100644
--- a/kernel/ia64/Makefile.pre
+++ b/kernel/ia64/Makefile.pre
@@ -1,6 +1,6 @@
prerequisite: asm-offsets.h ia64/memset.S ia64/memcpy.S
- cp -f $(LINUX)/arch/ia64/lib/memcpy.S ia64/memcpy.S
- cp -f $(LINUX)/arch/ia64/lib/memset.S ia64/memset.S
+ cp -f $(KERNELDIR)/arch/ia64/lib/memcpy.S ia64/memcpy.S
+ cp -f $(KERNELDIR)/arch/ia64/lib/memset.S ia64/memset.S
cmp -s asm-offset.h ia64/asm-offset.h || mv -f asm-offsets.* ia64/
asm-offsets.h: asm-offsets.s
@@ -20,4 +20,4 @@ asm-offsets.h: asm-offsets.s
echo "#endif") <$< >$@
asm-offsets.s: ia64/asm-offsets.c
- gcc -S -D__KERNEL__ -I$(LINUX)/include -I./include ia64/asm-offsets.c
+ gcc -S -D__KERNEL__ -I$(KERNELDIR)/include -I./include ia64/asm-offsets.c
diff --git a/kvm.spec b/kvm.spec
index 92acb0e..f6ae869 100644
--- a/kvm.spec
+++ b/kvm.spec
@@ -81,8 +81,8 @@ rm -rf %{buildroot}
cd ..
./configure --prefix=/usr/kvm %{qemuldflags}
make -C libkvm
-make -C user
%ifarch i386 x86_64
+make -C user
make extboot
%endif
#(cd qemu;
--
1.5.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Fix build issue for IA64
2008-08-12 0:33 [PATCH] Fix build issue for IA64 Zhang, Xiantao
@ 2008-08-12 13:54 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-08-12 13:54 UTC (permalink / raw)
To: Zhang, Xiantao; +Cc: kvm, kvm-ia64
Zhang, Xiantao wrote:
> From 40df689b23263ffe2f2efed9950700d42f985b29 Mon Sep 17 00:00:00 2001
> From: Xiantao Zhang <xiantao.zhang@intel.com>
> Date: Tue, 12 Aug 2008 08:15:10 +0800
> Subject: [PATCH] KVM:Userspace: Fix build issue for IA64.
>
> 1. Generating asm-offset.h @ build time with host kernel
> 2. "Make -C user" doesn't support for ia64 now.
>
Separate patches for separate issues, please.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-12 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 0:33 [PATCH] Fix build issue for IA64 Zhang, Xiantao
2008-08-12 13:54 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox