|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: Kernel module compilation
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
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|