Jump to content
em

Scrie primul tau patch la kernel!

Recommended Posts

Oricine face un patch, chiar si minor, primeste Custom User Title

Req:

- linux, 700MB spatiu liber

- gcc

- git

- C/C++

- diff

- engleza

Cum incep?


cd; mkdir linux; cd $_;
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Cam ora pe ~500kb/s

Configurarile la sendmail


git config –global user.name “Emil Boc”
git config –global user.email “emil.boc@gmail.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 emil.boc@gmail.com

Acum hai sa iti faci propria ta creanga


git branch tutorial
git checkout tutorial

In acest punct tu stii ca poti face orice magarie vrei prin surse. Doar esti pe branch-ul tau.

(Scrie patch-ul in sine)


git commit -a
git format-patch 0001....
./script/getmaintainer
git send-email –to=maintainer_email_addres –cc=adresa_email1 –cc=adresa_email2

Ca sa iti updatezi din cand in cand masterul


git checkout master
git pull -a

Extra:

- ca sa te asiguri ca sursa ta mai compileaza dupa ce a fost patch-uita (make M=/path/to/source)

- evita propozitiile lungi. Scrie de ce este util patch-ul tau, scurt si la obiect.

Exempl:

- corectare comentariu

- indent

Daca va blocati la unul din pasi urmariti video-ul sau reply aici.

Edited by em
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...