how to compile additional module?

Mirco Tischler mt-ml at gmx.de
Tue Aug 23 07:57:52 EDT 2011


2011/8/23 loody <miloody at gmail.com>:
> hi all:
> I found if kernel want to build usb modules it will show below:there is
> make -f scripts/Makefile.build obj=drivers/usb
>
> if I have a folder in drivers/miloodytest
> how could I generate
> make -f scripts/Makefile.build obj=drivers/miloodytest
>
> BR,
>
> 2011/8/23 loody <miloody at gmail.com>:
>> Dear all:
>> I make a module under kernel tree and adding Kconfig for that.
>> But I have no idea where I should add that when I type "make modules",
>> the modules I add will be compiled.
>> Would anyone tell me where the modules list located?
>>
>>
>> --
>> Regards,
>>
Hi
It seems you forgot to edit the Makefiles. Take a look at
Documentation/kbuild/makefiles.txt for a detailed explanation. Section
3 is probably the most interesting.

regards,
Mirco



More information about the Kernelnewbies mailing list