[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: Kernel module compilation

  • To: "Kieran Mansley" <kmansley@xxxxxxxxxxxxxx>
  • From: "David Pilger" <pilger.david@xxxxxxxxx>
  • Date: Thu, 5 Apr 2007 18:08:12 +0300
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 05 Apr 2007 08:07:00 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HJIII/Ew7NWPhijgsZ6ZNRu8oF5sSjbOJv7LcU5ESijleH3qjU4b+O42N06ncuhi32CFTkj+U/84JS38ABRC+sp6MuASwcpq5yO0ouKwtZhG6OqTbhtqeBUBQAcveWFCh8Wthhx4LVybfK0W8MNac28w/aFDlcnx+0hgAQHv8OA=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 4/5/07, Kieran Mansley <kmansley@xxxxxxxxxxxxxx> wrote:
On Wed, 2007-04-04 at 19:13 +0100, Ian Campbell wrote:
> On Wed, 2007-04-04 at 21:07 +0300, David Pilger wrote:
> > Thanks for your help,
> > It didn't work...
> >
> > This is the error I got ->
> > ----
> > Makefile:107: *** output directory
> > "../../../build-linux-2.6.18-xen_x86_32/" does not exist.  Stop.
> I presume that path does exist.

It would only exist if you're building the unified kernel.  If you're
building separate domU and dom0 kernels you'll have slightly differently
named build directories.

To just rebuild a couple of modules that I've changed I do:

 cd /path/to/your/xen-unstable.hg
 make -C build-linux-<whatever>_x86_32 modules

where <whatever> should match the kernel you want to build for.

This doesn't result in the compiled modules being copied to
dist/install/lib/modules/ in the xen-unstable.hg as it would if I'd done
a normal "make dist", but copying them over is easy enough with a


Thanks everyone!
Kieran, I just added "M=driver/path/to/driver" and it worked!
The final line looks like this ->

make -C build-linux-2.6.18-xen_x86_32 modules M=drivers/char/mydriver

Xen-devel mailing list

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.