From: ehrhardt@linux.vnet.ibm.com
To: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Cc: hollisb@us.ibm.com, ehrhardt@linux.vnet.ibm.com
Subject: [PATCH] kvm-userspace: kvmppc: fix building userspace for powerpc
Date: Tue, 16 Sep 2008 08:48:34 +0000 [thread overview]
Message-ID: <1221554914-29751-4-git-send-email-ehrhardt@linux.vnet.ibm.com> (raw)
In-Reply-To: <1221554914-29751-1-git-send-email-ehrhardt@linux.vnet.ibm.com>
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Commit 2d5737d8 added the requirement for an $arch/Makefile.pre in the
kernel subdirectory. This patch adds a stub for powerpc.
Additionally now a file kernel/$arch/hack-module.awk is needed and a simple
version for ppc is added for that one too.
In the root Makefile ia64 patch 030253bf added ia64 with a comma which should
break both architectures because filter works without. The patch removes that
comma.
The commit 76ff90aa fixed the dependency to DEPLIBS, but the definition of the
libfdt dependency lacks the right path (../libfdt/).
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---
[diffstat]
Makefile | 2 +-
kernel/powerpc/Makefile.pre | 1 +
kernel/powerpc/hack-module.awk | 5 +++++
qemu/Makefile.target | 2 +-
4 files changed, 8 insertions(+), 2 deletions(-)
[diff]
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@
ifneq '$(filter $(ARCH), i386 x86_64)' ''
qemu: extboot
endif
-ifneq '$(filter $(ARCH), powerpc, ia64)' ''
+ifneq '$(filter $(ARCH), powerpc ia64)' ''
qemu: libfdt
endif
user: libkvm
diff --git a/kernel/powerpc/Makefile.pre b/kernel/powerpc/Makefile.pre
new file mode 100644
--- /dev/null
+++ b/kernel/powerpc/Makefile.pre
@@ -0,0 +1,1 @@
+prerequisite:
diff --git a/kernel/powerpc/hack-module.awk b/kernel/powerpc/hack-module.awk
new file mode 100644
--- /dev/null
+++ b/kernel/powerpc/hack-module.awk
@@ -0,0 +1,5 @@
+/MODULE_AUTHOR/ {
+ printf("MODULE_INFO(version, \"%s\");\n", version)
+}
+
+{ print }
diff --git a/qemu/Makefile.target b/qemu/Makefile.target
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -579,7 +579,7 @@
ifdef CONFIG_LIBFDT
LIBS += -lfdt
-DEPLIBS += libfdt.a
+DEPLIBS += ../libfdt/libfdt.a
endif
# SCSI layer
WARNING: multiple messages have this Message-ID (diff)
From: ehrhardt@linux.vnet.ibm.com
To: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Cc: hollisb@us.ibm.com, ehrhardt@linux.vnet.ibm.com
Subject: [PATCH] kvm-userspace: kvmppc: fix building userspace for powerpc
Date: Tue, 16 Sep 2008 10:48:34 +0200 [thread overview]
Message-ID: <1221554914-29751-4-git-send-email-ehrhardt@linux.vnet.ibm.com> (raw)
In-Reply-To: <1221554914-29751-1-git-send-email-ehrhardt@linux.vnet.ibm.com>
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Commit 2d5737d8 added the requirement for an $arch/Makefile.pre in the
kernel subdirectory. This patch adds a stub for powerpc.
Additionally now a file kernel/$arch/hack-module.awk is needed and a simple
version for ppc is added for that one too.
In the root Makefile ia64 patch 030253bf added ia64 with a comma which should
break both architectures because filter works without. The patch removes that
comma.
The commit 76ff90aa fixed the dependency to DEPLIBS, but the definition of the
libfdt dependency lacks the right path (../libfdt/).
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---
[diffstat]
Makefile | 2 +-
kernel/powerpc/Makefile.pre | 1 +
kernel/powerpc/hack-module.awk | 5 +++++
qemu/Makefile.target | 2 +-
4 files changed, 8 insertions(+), 2 deletions(-)
[diff]
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@
ifneq '$(filter $(ARCH), i386 x86_64)' ''
qemu: extboot
endif
-ifneq '$(filter $(ARCH), powerpc, ia64)' ''
+ifneq '$(filter $(ARCH), powerpc ia64)' ''
qemu: libfdt
endif
user: libkvm
diff --git a/kernel/powerpc/Makefile.pre b/kernel/powerpc/Makefile.pre
new file mode 100644
--- /dev/null
+++ b/kernel/powerpc/Makefile.pre
@@ -0,0 +1,1 @@
+prerequisite:
diff --git a/kernel/powerpc/hack-module.awk b/kernel/powerpc/hack-module.awk
new file mode 100644
--- /dev/null
+++ b/kernel/powerpc/hack-module.awk
@@ -0,0 +1,5 @@
+/MODULE_AUTHOR/ {
+ printf("MODULE_INFO(version, \"%s\");\n", version)
+}
+
+{ print }
diff --git a/qemu/Makefile.target b/qemu/Makefile.target
--- a/qemu/Makefile.target
+++ b/qemu/Makefile.target
@@ -579,7 +579,7 @@
ifdef CONFIG_LIBFDT
LIBS += -lfdt
-DEPLIBS += libfdt.a
+DEPLIBS += ../libfdt/libfdt.a
endif
# SCSI layer
next prev parent reply other threads:[~2008-09-16 8:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 8:48 [PATCH 0/3] kvm-userspace: kvmppc: fix build for ppc ehrhardt
2008-09-16 8:48 ` ehrhardt
[not found] ` <1221554914-29751-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-09-16 8:48 ` [PATCH 1/3] kvm-userspace: kvmppc: fix file header in libkvm-powerpc.c ehrhardt
2008-09-16 8:48 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 6:36 ` [PATCH 1/3] kvm-userspace: kvmppc: fix file header in libkvm-powerpc.c v2 ehrhardt
2008-09-30 6:36 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-16 8:48 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling ehrhardt
2008-09-16 8:48 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 6:36 ` ehrhardt
2008-09-30 6:36 ` ehrhardt
2008-09-30 9:10 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 ehrhardt
2008-09-30 9:10 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 14:13 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection Hollis Blanchard
2008-09-30 14:13 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 Hollis Blanchard
2008-09-30 19:38 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits malc
2008-09-30 19:38 ` [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 malc
[not found] ` <Pine.LNX.4.64.0809302317100.2511-KsBd/I2zj1m2ZGm1qqSgDg@public.gmane.org>
2008-10-01 12:26 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits Christian Ehrhardt
2008-10-01 12:26 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 Christian Ehrhardt
[not found] ` <1222765817-26552-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-09-30 21:19 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits malc
2008-09-30 21:19 ` [Qemu-devel] [PATCH 2/3] kvm-userspace: kvmppc: fix hostlonbits detection when cross compiling v2 malc
2008-09-16 8:48 ` ehrhardt [this message]
2008-09-16 8:48 ` [PATCH] kvm-userspace: kvmppc: fix building userspace for powerpc ehrhardt
2008-09-30 6:36 ` [PATCH 0/3] kvm-userspace: kvmppc: fix build for ppc v2 ehrhardt
2008-09-30 6:36 ` ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8
2008-09-30 14:19 ` Hollis Blanchard
2008-09-30 14:19 ` Hollis Blanchard
[not found] ` <1222756604-10899-1-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-10-02 12:57 ` Avi Kivity
2008-10-02 12:57 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1221554914-29751-4-git-send-email-ehrhardt@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=hollisb@us.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.