<title>Linux Submitting Patch</title> Linux submitting patchtable of Contents
- 1. Get the latest kernel source code from git. It is the recommeded to use Torvalds ' s branch.
- 2. Create a new branch within Git, in which the modification takes place.
- 3. Commit the changes.
- 4. Make patches with Git.
- 5. Configure the MSMTP service and send the patch to the matainers.
For a long time, I ' ve been wondering what it would is like to submit patches tothe Linux kernel. Now I find a chance to does that.
This post records the necessary steps for preparing and submitting patches tothe kernel mail list.
1Get the latest kernel source code from git. It is the recommeded to use Torvalds ' s branch.
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git |
2Create a new branch within Git, in which the modification takes place.
Git branch wujing (any branch name) |
git checkout wujing |
After this step, the working branch are switched to wujing. You can check thestatus with:
The branch name with a star sign in front is the currently active branch.
3Commit the changes.
git commit-m "Modification Summary"./* |
In the above command, it's assumed that the modified files are located in thecurrent working directory. Normally, this directory can be the top Levelsource directory.
4Make patches with Git.
Git format-patch master-s |
This command creates a patch against the master branch. With all the necessaryinformation of a standard patch.
5Configure the MSMTP service and send the patch to the matainers.
The configuration file of Msmtp (~/.MSMTPRC) using Hotmail is as follows:
Defaultslogfile ~/.msmtp.log#hotmailaccount Hotmailprotocol SMTPhost smtp.live.comfrom [email protected]User [email protected]password xxxxport 25 Auth LoginTLS ontls_trust_file/etc/ssl/certs/ca-certificates.crt Syslog log_mail# Set A defaultaccount account Default:hotmail
To find the Matainers, use the following command:
./scripts/get_maintainer.pl-f XX |
Finally, to send the patch to the target users:
git send-email–smtp-server/usr/bin/msmtp–to [email protected]–cc [email protected] Xxx.patch |
Author:wujing
Created:2016-08-22 Mon 17:09
Emacs 24.5.1 (ORG mode 8.2.10)
Linux Submitting Patch