This is an old revision of the document!
Useful info:
First we will have to figure out which kernel tree you should use. Usually you will have to pick up the maintainer's tree for the subsystem your patch belongs to. When in doubt use linux-next.
We will try to find and fix a small issue in the staging/
driver directory. So we will use staging.git tree.
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
# setup user name git config --global user.name "Green Penguin" # setup user email $ git config --global user.email "your_email@example.com" # setup default editor $ git config --global core.editor vim
sudo apt-get install coccinelle </code>
$ sudo apt install sparse
We can use defconfig
for getting a smaller kernel image.
$ make defconfig $ make $ make modules
Use make menuconfig and in the GUI navigate to your module. For search we can use '/' as in vim.
make path/file.o