This plugin offers a "Linux Kernel" project type to KDevelop that makes it easy and comfortable to work on the Linux kernel.
The raw KDevelop comes with extremely useful cross-reference and code parsing tools, but they do not apply well to the Linux kernel. Problems are:
__KERNEL__
) are needed for the code to be parsed correctly. Without them lots of functions and data structures will appear as undeclared.This plugin requires KDevelop 4.7.
Just typing cmake . && make && sudo make install
should be enough to have the project installed. Then in KDevelop, do "Project -> Open/Import Project..." and select the root Makefile of your Linux kernel. When prompted for the type of the project, choose "Linux Kernel".
Then open the project's configuration and in the "Linux Kernel" pane select your kernel configuration file. You will then need to restart KDevelop so the right kernel files are parsed with the right defines.
This plugin is written by Alexandre Courbot and is released under the GPLv3. You can report issues, suggest features or contribute fixes on its Github page:
https://github.com/Gnurou/kdev-kernel
Happy Comfortable Hacking! :)