Linux Submitting Patch

Source: Internet
Author: User
Tags git clone

<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:

Git branch

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.
Apt Install msmtp

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.