Skip to content

Instantly share code, notes, and snippets.

@gautammenghani
Last active January 9, 2022 09:10
Show Gist options
  • Select an option

  • Save gautammenghani/c5bb9b7bbcf113330150a3cff2d12606 to your computer and use it in GitHub Desktop.

Select an option

Save gautammenghani/c5bb9b7bbcf113330150a3cff2d12606 to your computer and use it in GitHub Desktop.
The kernel development process to submit patches
  1. Clone the stable kernel git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

  2. Create a new branch and make changes in that branch. Commit your changes.

  3. Create a config file for your distro, and then compile and install your kernel to make sure everything works.

  4. To submit your changes, you need to make a patch out of your commit. Each subsystem of the kernel has its own maintainer(s). To find out the maintainer for your subsystem, you can use the 'get_maintainer.pl' script bundled with the kernel.

  5. To get your patch ready, use the following command. After a patch is generated, you need to add details to it explaining why changes are required. git format-patch -1 <commit ID> --to=<maintainer> --to=<maintainer> --cc=<list/maintainer> --cc=<list/maintainer>

  6. Send the patch using git-email git send-email <patch_name>

References:

  1. Detailed explanation in the linux next repo
  2. Sample patch
  3. Kernel's documentation on submitting patches
  4. Email clients that can be used
  5. Replying to emails using git send-email
  6. Course on beginner's guide to kernel dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment