Linux kernel development environment build __linux

Source: Internet
Author: User
Tags git clone


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






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.