]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
documentation: dev-manual - Updates to Git workflow and kernel patch
authorScott Rifenbark <scott.m.rifenbark@intel.com>
Mon, 22 Oct 2012 16:02:52 +0000 (09:02 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Oct 2012 23:03:13 +0000 (00:03 +0100)
I updated the sections on the "Git Workflow" in Chapter 4 and
the "Patching the Kernel" section in Chapter 5 per Tom
Zanussi's review comments.  Minor technical changes.

(From yocto-docs rev: fd8a291349c06328adebd37f8a9bbeaa49adb44c)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
documentation/dev-manual/dev-manual-common-tasks.xml
documentation/dev-manual/dev-manual-model.xml

index df64e1124e74cf5f835fd697ca365ef1143c39ab..2f73e28829b4e70314d26fa712edf0f8c4b4c7ba 100644 (file)
                         </literallayout></para></listitem>
                     <listitem><para><emphasis>Generate the patch file</emphasis>:
                         This Git command creates the a patch file named
-                        <filename>0001-calibrate: Add printk example.patch</filename> 
+                        <filename>0001-calibrate-Add-printk-example.patch</filename> 
                         in the current directory.
                         <literallayout class='monospaced'>
-     $ git format-patch HEAD~1
+     $ git format-patch -1
                         </literallayout>
                         </para></listitem>
                 </orderedlist>
                         <literallayout class='monospaced'>
      FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-     SRC_URI += "file://0001-calibrate: Add printk example.patch"
+     SRC_URI += "file://0001-calibrate-Add-printk-example.patch"
 
      PRINC := "${@int(PRINC) + 1}"                       
                         </literallayout>
                         statements enable the OpenEmbedded build system to find the patch file.
                         </para></listitem>
                     <listitem><para><emphasis>Put the patch file in your layer</emphasis>:
-                        Move the <filename>0001-calibrate: Add printk example.patch</filename> file to 
+                        Move the <filename>0001-calibrate-Add-printk-example.patch</filename> file to 
                         the <filename>meta-mylayer/recipes-kernel/linux/linux-yocto</filename>
                         directory.</para></listitem>
                 </orderedlist>
index 669623bc7f9e752b39dfdbfe800e4a072f866e1f..4452d2a4e25a73c777dee19824bd4b7b7f1b781b 100644 (file)
@@ -1705,7 +1705,7 @@ directory.</para></listitem>
                     <literallayout class='monospaced'>
      $ git init
      $ git add *
-     $ git commit
+     $ git commit -m "initial revision"
                     </literallayout>
                     The above Git commands initialize a Git repository that is based on the 
                     files in your current working directory, stage all the files, and commit
@@ -1762,9 +1762,9 @@ directory.</para></listitem>
                     Once the changes are committed, use the <filename>git format-patch</filename>
                     command to generate a patch file:
                     <literallayout class='monospaced'>
-     $ git format-patch HEAD~1
+     $ git format-patch -1
                     </literallayout>
-                    The <filename>HEAD~1</filename> part of the command causes Git to generate the 
+                    Specifying "-1" causes Git to generate the 
                     patch file for the most recent commit.</para>
                     <para>At this point, the patch file has all your edits made 
                     to the <filename>file1.c</filename>, <filename>file2.c</filename>, and 
@@ -1784,7 +1784,7 @@ directory.</para></listitem>
                     of the recipe.  
                     Here is an example:
                     <literallayout class='monospaced'>
-     SRC_URI += "file://my_changes.patch"
+     SRC_URI += "file://0001-&lt;commit-summary-message&gt;.patch"
                     </literallayout></para></listitem>
                 <listitem><para><emphasis>Increment the Recipe Revision Number:</emphasis>
                     Finally, don't forget to 'bump' the