Greg 大侠讲解,提交你的第一个kernel patch

2390阅读 1评论2013-07-01 firocu
分类:LINUX

Write and Submit your first Linux kernel Patch

墙外地址:
非严格对应的blog:
Documention/HOWTO, Codingstyle

git clone kernel source
git status
git branch
git checkout

make some changes
scripts/checkpatch.pl  --file --terse  drivers/md/dm-io.c
git diff
make M=drivers/md/
git commit -a
USB: otg: short summary
...

Signed-off by: Firo Yang

MAYBE:git commit --amend
git show --pretty=full

git format-patch master

scripts/checkpatch.pl 0001-Drivers-md-..
scripts/get_maintainer.pl
scripts/get_maintainer.pl --file

git send-mail --to ... --cc 0001-Drivers-md

git blame  ..file
git show comitcode897932832

上一篇:内核中IS_ERR, ERR_PTR,PTR_ERR用法
下一篇:GDB