diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index df64e1124e..2f73e28829 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -1726,10 +1726,10 @@ Generate the patch file: This Git command creates the a patch file named - 0001-calibrate: Add printk example.patch + 0001-calibrate-Add-printk-example.patch in the current directory. - $ git format-patch HEAD~1 + $ git format-patch -1 @@ -1776,7 +1776,7 @@ 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}" @@ -1784,7 +1784,7 @@ statements enable the OpenEmbedded build system to find the patch file. Put the patch file in your layer: - Move the 0001-calibrate: Add printk example.patch file to + Move the 0001-calibrate-Add-printk-example.patch file to the meta-mylayer/recipes-kernel/linux/linux-yocto directory. diff --git a/documentation/dev-manual/dev-manual-model.xml b/documentation/dev-manual/dev-manual-model.xml index 669623bc7f..4452d2a4e2 100644 --- a/documentation/dev-manual/dev-manual-model.xml +++ b/documentation/dev-manual/dev-manual-model.xml @@ -1705,7 +1705,7 @@ directory. $ git init $ git add * - $ git commit + $ git commit -m "initial revision" 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. Once the changes are committed, use the git format-patch command to generate a patch file: - $ git format-patch HEAD~1 + $ git format-patch -1 - The HEAD~1 part of the command causes Git to generate the + Specifying "-1" causes Git to generate the patch file for the most recent commit. At this point, the patch file has all your edits made to the file1.c, file2.c, and @@ -1784,7 +1784,7 @@ directory. of the recipe. Here is an example: - SRC_URI += "file://my_changes.patch" + SRC_URI += "file://0001-<commit-summary-message>.patch" Increment the Recipe Revision Number: Finally, don't forget to 'bump' the