From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH] kvm-kmod: Document the build process (take 2) Date: Sat, 14 Nov 2009 10:08:37 +0100 Message-ID: <4AFE7395.1090307@web.de> References: <4AE16033.5080906@siemens.com> <1258047322-5750-1-git-send-email-wolfgang.mauerer@siemens.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig81BB57889D32D61F9F9BCA18" Cc: kvm@vger.kernel.org To: Wolfgang Mauerer Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:39084 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627AbZKNJIh (ORCPT ); Sat, 14 Nov 2009 04:08:37 -0500 In-Reply-To: <1258047322-5750-1-git-send-email-wolfgang.mauerer@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig81BB57889D32D61F9F9BCA18 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Wolfgang Mauerer wrote: > A package without build instructions is like a kernel > without a penguin. Thanks, merged. Jan >=20 > Signed-off-by: Wolfgang Mauerer > --- > README | 37 +++++++++++++++++++++++++++++++++++++ > 1 files changed, 37 insertions(+), 0 deletions(-) > create mode 100644 README >=20 > diff --git a/README b/README > new file mode 100644 > index 0000000..bef7586 > --- /dev/null > +++ b/README > @@ -0,0 +1,37 @@ > +Building the KVM kernel module is performed differently depending on w= hether > +you are working from a clone of the git repository or from a source re= lease. > +Notice that two kernels are involved: One from which the KVM sources > +are taken (kernel A), and one for which the module is built (kernel B)= =2E=20 > +For out-of-tree module builds, it is well possible that kernel A is mo= re > +recent than kernel B. > + > +- To build from a release (this is the default case), simply > + use ./configure (possibly with any arguments that are required for > + your setup, see ./configure --help) and make. The kernel specified > + with --kerneldir refers to kernel B, that is, the kernel for which > + the module is built. > + > +- Building from a cloned git repository (most likely useful for develo= pers > + only) requires a kernel tree with the main kvm sources (kernel A) th= at > + is included as a submodule in the linux-2.6/ directory. By default,= > + the KVM development tree on git.kernel.org is used, but this can be > + changed in the git configuration. > + > + Before the kvm module can be built, the linux submodule must be init= ialised > + and populated. The required sequence of commands is > + > + git submodule init > + git submodule update > + ./configure > + make sync > + make > + > + Notice that you can also specify an existing Linux tree for the > + synchronisation stage by using > + > + make sync LINUX=3D/path/to/kernel/A > + > + LINUX specifies the path to kernel A from which the KVM sources are = taken.=20 > + The directory must point to a local git tree, not to a plain directo= ry > + containing the kernel sources. If LINUX is unset, the default value > + is linux-2.6/, i.e., the git submodule. --------------enig81BB57889D32D61F9F9BCA18 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkr+c5kACgkQitSsb3rl5xSR7wCgzyQRDycWjvPF7chhcKZmhyEd tiIAn2csoNJNFlBNEWPWHZiTqIGjSar4 =NLEF -----END PGP SIGNATURE----- --------------enig81BB57889D32D61F9F9BCA18--