Tasks

  1. Set up the local repo
    • Configure your username, email and colors
      git config --global user.email "me@iheartlinux.com"
      git config --global user.name "Linus Jr"
      git config --global color.branch auto
      git config --global color.status auto
      git config --global color.diff auto
    • Clone this repo: git clone https://github.com/torvalds/linux.git
    • Grab a coffee. Listen to the presentation.
  2. Find some work to do
  3. Setup git
    git config --global user.name "Firstname Lastname"
    git config --global user.email "your_email@youremail.com"
    git config --global sendemail.smtpserver smtp.gmail.com
    git config --global sendemail.smtpserverport 587
    git config --global sendemail.smtpencryption tls
    git config --global sendemail.smtpuser your_email@gmail.com
  4. Patch creation workflow
    • Create development branch
      • git branch fixes
      • git checkout fixes
    • Create patch (see next item)
      • git add <file>
      • git commit -s
      • Add a good commit message and a Signed-off-by line.
      • git format-patch -1
      • ./scripts/checkpatch.pl name.patch
    • Send patch (to firefly list for first test)
      • git send-email -to=firefly@lists.rosedu.org MY_PATCH
    • Send patch to kernel liist
      • Find maintainers
      • ./scripts/get_maintainer.pl name.patch
      • git send-email -to=maintainer_email_addres -cc=adresa_email1 -cc=adresa_email2
  5. How can I get something to fix
    • checkpatch.pl
      • chose a file and check for errors: /usr/src/linux/scripts/checkpatch.pl –no-tree -f file
    • sparse
      • make C=1 <subsystem>
sesiuni/kernel/day-9.txt · Last modified: 2013/07/13 10:41 by dbaluta