From: "David Pilger" Subject: Re: Re: Kernel module compilation Date: Thu, 5 Apr 2007 18:08:12 +0300 Message-ID: <280848580704050808r53a7ec2ek2963ebfa31f15de6@mail.gmail.com> References: <280848580703290454o407cf95amdad3741d7bf358e@mail.gmail.com> <280848580704040911h4a803038j5dbad2c0d6ca1e09@mail.gmail.com> <1175703640.25237.354.camel@localhost.localdomain> <280848580704041107m7bdf0a64r6f3d77923822bc23@mail.gmail.com> <1175710418.8760.4.camel@cthulhu.hellion.org.uk> <1175765549.4124.6.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1175765549.4124.6.camel@moonstone.uk.level5networks.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kieran Mansley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4/5/07, Kieran Mansley 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-_x86_32 modules > > where 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 > script. > > Kieran > 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 CONFIG_MYDRIVER=m > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >