Difference between revisions of "Submit patches to Openembedded"

From KoanSoftware Wiki
Jump to: navigation, search
(Created page with "== Submit patches to Openembedded (core) == Submitting patches to oe-core is slightly different than what was used with oe-classic. You can tread the official [[http://www.opene…")
 
(Committing your patch)
Line 33: Line 33:
  
 
Add the modified file
 
Add the modified file
  git add meta/recipes-devtools/flex
+
  git add path/recipename
  
 
Add a comment
 
Add a comment

Revision as of 11:48, 7 January 2013

Submit patches to Openembedded (core)

Submitting patches to oe-core is slightly different than what was used with oe-classic. You can tread the official [Openembedded howto]

Set up git

You have to setup a Google mail account (the same you used to subscribe to OE mailing list)

Properly configuring git (using tekkub@gmail.com as an example user)

On Debian / Ubuntu (Note: Fedora uses `yum` OpenSuse uses zypper or yast)

sudo aptitude install git-core git-email

These are important to the commit meta-data

git config --global user.name "Tekkub"
git config --global user.email "tekkub@gmail.com"

Any Google Apps account

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 tekkupl@gmail.com

Committing your patch

Commit with a concise and descriptive message - one that explains your changes in a way others get a short overview without looking at the code.

Move to oe-core directory or whereever you keep your clone of the repo

cd oe-core

Add the modified file

git add path/recipename

Add a comment

git commit
   recipename: brief description
   
   * Longer description
   * if
   * required

Please add the appopriate prefix so that it is clear which layer the patch is intended to be applied to:

git format-patch -s --subject-prefix="oe][meta-oe][PATCH" -1

Sending using git-send-email

To send just the top commit on your current branch (substitute mailing list address as appropriate):

git send-email --to=openembedded-core@lists.openembedded.org --confirm=always -M -1