Re: Building a kernel module in a different folder

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

 



Hello,

Thanks!
I needed to do the same to the wireless device
drivers, and the following did it:

make SUBDIRS=drivers/net/wireless/ O=../wireless-testing_obj/


Regards,
Andy


On Sun, Jan 25, 2009 at 12:55 PM, Sandeep K Sinha
<sandeepksinha@xxxxxxxxx> wrote:
> On Sun, Jan 25, 2009 at 3:43 PM, Andy Johnson <johnsonzjo@xxxxxxxxx> wrote:
>> 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_ob
>>
>> 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.
>>
>
> Go to the root kernel tree,
> and try,
>
> make SUBDIRS=drivers/net modules
>
>
>> 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 ?
>>
>
> HTH,
>
>> 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
>>
>>
>
>
>
> --
> Regards,
> Sandeep.
>
>
>
>
>
>
> "To learn is to change. Education is a process that changes the learner."
>

--
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