How to build an external module in a specified directory?

Shiyao Ma i at introo.me
Mon Jan 2 06:39:58 EST 2017


Hi,

When building an external module, for example, given this command,
all:
    $(MAKE) -C $(KDIR) M=$$PWD

It will build the ko file in the $PWD.

How to specify a location for the .ko files?


Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170102/5ccf29a9/attachment.html 


More information about the Kernelnewbies mailing list