From 767b28ea55cd47f29fd3402aa20a2654bf2ba51f Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 22 Oct 2012 09:02:52 -0700 Subject: documentation: dev-manual - Updates to Git workflow and kernel patch 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 Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-common-tasks.xml | 8 ++++---- documentation/dev-manual/dev-manual-model.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'documentation') 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 -- cgit v1.2.3-54-g00ecf