Building a kernel module in a different folder

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

 



Hello,

When I want to build a kernel module (let's say it is drivers/net/b44.ko)
I simply run
"make drivers/net/b44.ko" and it was ok.
Now I had build the kernel in a differnet tree than the source tree.
There is kernel_obj under the parent of the kernel directory.
I had done this by by: make O=../kernel_obj

When I try to built the module in that kernel_obj tree I want to do the same,
namely build only one specific module (and not all the tree); and I can't.

To be more specific:
If I run
make O=../kernel_obj
It will be OK; it will build the module. But this will take a lot of
time, since in fact
it tries to build all the tree and not only a specified module.

So:
I tried:
make O=../kernel_ob ../kernel_obj/drivers/net/b44.ko and it does **not** work.

Also:
make ../kernel_obj/drivers/net/b44.ko
is not good for this.

Any ideas ?

Regards,
Andy

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux