Building libraries and binaries using Kbuild in a different folder

2013-11-11 Thread Sankar P
Hi, I have a kernel module which is built using Kbuild. However, when I try to compile it via: make -C /lib/modules/`uname -r`/build M=$PWD The modules are built in the pwd. Is there a way to get all the generated files moved to a different location, so that my checkout area is clean ? Also, us

Re: Building libraries and binaries using Kbuild in a different folder

2013-11-11 Thread Sankar P
2013/11/12 Sankar P : > If my .ko generates a.ko ,b.ko > and c.ko, Is there a way to build b.ko alone if I want ? I found the soluton to this. I just have to add the .ko name in the end and it alone will be built. However, I do not know the answer to the other question yet. Thanks. -- Sankar