1.install git git-email
Yum Install git
Yum Install Git-email
2.download the source code of kernel
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git clone git://libvirt.org/libvirt.git
git clone git://git.qemu-project.org/qemu.git
3.configure git
Git-config--global user.name "xxx"
Git-config--global user.email "xxx@yy.com"
git config--list
4.configure Git-sendmail
git config--global sendemail.smtpencryption TLS
git config--global sendemail.smtpserver mail.messagingengine.com
git config--global sendemail.smtpuser xxx@yy.fm
git config--global sendemail.smtpserverport 587
git config--global sendemail.smtppass hackme
Perform the following command to verify that the sending message is successful. Fill in your own email address.
Echo-e "Subject:test Mail\r\n\r\nthis is a Test Mail" |msmtp--debug-t xxx@163.com
If successful, continue with the following steps.
5. Develop your own patches
git checkout-b dev//Create your own development branch
VI kernel/sched/core.c//Modify Code
Make-j2
Make Modules_install
Make install//compile kernel to verify that the modifications meet expectations
git commit-a-s-m ' sched:fix BUG in Preempt_notifier ' E//commit modification
git format-patch-1//Generate patches
./scripts/checkpatch.pl 0001-sched-fix-bug-in-preempt_notifier.patch//Check whether the patch conforms to the specification
./scripts/get_maintainer.pl kernel/sched/-f//View the Defenders of the corresponding module
git send-email--smtp-server/usr/bin/msmtp--to xxx--to xxx--cc linux-kernel@vger.kernel.org 0001- Sched-fix-bug-in-preempt_notifier.patch//Send mail to the corresponding maintainers and maillist