From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maik Hentsche Subject: Re: [PATCH] kvm-userspace: fix module build with --kerneldir Date: Wed, 26 Nov 2008 11:59:15 +0100 Message-ID: <20081126115915.4cf3308d@siegfried> References: <1227621454-24385-1-git-send-email-joerg.roedel@amd.com> <492D27FA.5090707@redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/TDp9L+ueGt6yPlxl.wSmX8A"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: kvm@vger.kernel.org, Joerg Roedel To: Avi Kivity Return-path: Received: from outbound-va3.frontbridge.com ([216.32.180.16]:28616 "EHLO VA3EHSOBE005.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbYKZK71 (ORCPT ); Wed, 26 Nov 2008 05:59:27 -0500 In-Reply-To: <492D27FA.5090707@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: --Sig_/TDp9L+ueGt6yPlxl.wSmX8A Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Avi Kivity wrote: > Can't the version be determined directly from kernedir itself? e.g.=20 > kerneldir is /lib/modules/$version/build? How do you get $version if you are crosscompiling? In this case the usual way of asking uname doesn't work. Instead you somehow need to get the version of the kernel you're building for from the kernel source provided in --kerneldir. I don't know any better way than evaluating UTSRELEASE. so long Maik --=20 \ AMD Saxony Limited Liability Company & Co. KG Operating | Wilschdorfer Landstr. 101, 01109 Dresden, Germany System | Register Court Dresden: HRA 4896 Research | General Partner authorized to represent: Center | AMD Saxony LLC (Wilmington, Delaware, US) / General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Sig_/TDp9L+ueGt6yPlxl.wSmX8A Content-Type: application/pgp-signature; name="signature.asc" Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFJLSwDFY+OhfZweXURAry/AJ9WWjE/rhRFausbspgpeKvNwg9uGgCbBYWt oQA3zmFw6axNl8r1L2LxY1g= =jt2q -----END PGP SIGNATURE----- --Sig_/TDp9L+ueGt6yPlxl.wSmX8A--