[CMake] Building linux kernel module with Cmake

Brandon Van Every bvanevery at gmail.com
Thu Nov 1 14:38:02 EDT 2007


On Nov 1, 2007 5:48 AM, Suhas Jain <suhasj at aftek.com> wrote:
> Thanks for you reply Hendrik
> Even I know that Kbuild is a very simple procedure to do so.
> But I have a source tree which has applications, drivers and other modules
> for different OS as well as hardware architectures and I want to compile all
> these folders from a single top level directory. All this can be achieved
> with Cmake utlity. I have already compiled other modules.
> I want to know if it possible to use cmake for compiling kernel module

It would be simpler to use ADD_CUSTOM_COMMAND / ADD_CUSTOM_TARGET to
invoke the Linux kernel's native Kbuild, then utilize the results.


Cheers,
Brandon Van Every


More information about the CMake mailing list