From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLzud-00063f-2o for qemu-devel@nongnu.org; Wed, 01 Jul 2009 09:31:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLzuY-0005yx-E9 for qemu-devel@nongnu.org; Wed, 01 Jul 2009 09:31:46 -0400 Received: from [199.232.76.173] (port=52657 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLzuY-0005yi-7j for qemu-devel@nongnu.org; Wed, 01 Jul 2009 09:31:42 -0400 Received: from mail-qy0-f191.google.com ([209.85.221.191]:52897) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLzuX-0003Tf-UF for qemu-devel@nongnu.org; Wed, 01 Jul 2009 09:31:42 -0400 Received: by qyk29 with SMTP id 29so973234qyk.4 for ; Wed, 01 Jul 2009 06:31:41 -0700 (PDT) Message-ID: <4A4B653B.5010203@codemonkey.ws> Date: Wed, 01 Jul 2009 08:31:39 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Set a useful default for kerneldir References: <20090701093319.GA12461@basil.fritz.box> In-Reply-To: <20090701093319.GA12461@basil.fritz.box> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andi Kleen Cc: qemu-devel@nongnu.org Andi Kleen wrote: > When no explicit kerneldir is specified use the standard > /lib/modules/$(uname -r)/build > convention to find the kernel includes. This should work out of the box > on a large number of distributions. > > Also support separate objdirs. > > Signed-off-by: Andi Kleen > The reason we don't specify an explicit include is that it makes it possible to have a cross compiler with headers installed in the cross compilers root. If you default to /lib/modules, you have to explicitly override it when cross compiling. Another option would be to just include the KVM headers in QEMU. Regards, Anthony Liguori