How to contribution linux kernel
I’m interested in Linux Kenrel and wanted to contribute.
So i will keep it in documentation and try to contribution whenever find a bug or extra.
- Pull Linux mainline kernel source code
git clone https://github.com/torvalds/linux.git ./mainline_code - Configure git environment
git config --global user.name "JJungs Lee" git config --global user.email "loveljhs2@gmail.com" git config --global core.editor vi // --snip-- - Modify the code (Bugs or New features)
// test.c -int num = 0; +long long num = 0; - Git add modify files and commit use
-s or --signoffoption
(add Signed-off-by in commit)git add test.c git commit -s -m "test for commit" - Make patch file and Check linux coding style
If the coding style is mismatch, the checkpatch tool will be prints errors. All errors, warnings, spaces, etc. need to be fixed.git format-patch -1 ./scripts/checkpatch.pl ./0001-test-for-commit.patch - Check maintainers, submitter and mailing list
./scripts/get_maintainer.pl ./0001-test-for-commit.patch - Install the
git-emailfor sending patchssudo apt-get install git-email - Send patch files to maintainers using
git send-email
how to use) git send-email refer doc orgit help send-emailcmdgit send-email \ --to maintainer1@address.com \ --to maintainer2@address.com \ --cc cc_addr@mailinglist.org \ ./0001-test-for-commit.patch - Check the site below to see if it was sent properly.
All of patch archive site - https://lkml.org/
refer)