From 5c44309cfed33a121f0e046ace4af687f3359c16 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 15 Aug 2012 14:18:51 -0700 Subject: documentation/kernel-manual: Fixed minor problems I did a read-through of the manual and spotted several nits that I fixed. All these are minor fixes. (From yocto-docs rev: 0c8f9c660ecea0b36e2b6af0315d3d239f70a688) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/kernel-manual/kernel-how-to.xml | 95 ++++++++++++++------------- 1 file changed, 48 insertions(+), 47 deletions(-) (limited to 'documentation/kernel-manual/kernel-how-to.xml') diff --git a/documentation/kernel-manual/kernel-how-to.xml b/documentation/kernel-manual/kernel-how-to.xml index b1916420d6..4086f55c37 100644 --- a/documentation/kernel-manual/kernel-how-to.xml +++ b/documentation/kernel-manual/kernel-how-to.xml @@ -27,7 +27,7 @@ This section describes construction of the Yocto Project kernel source repositories as accomplished by the Yocto Project team to create kernel repositories. - These kernel repositories are found at + These kernel repositories are found under the heading "Yocto Linux Kernel" at &YOCTO_GIT_URL;/cgit.cgi and can be shipped as part of a Yocto Project release. The team creates these repositories by @@ -53,8 +53,8 @@ For another example of how to set up a local Git repository of the Yocto Project kernel files, see the - "Linux Yocto Kernel" bulleted - item in The Yocto Project Development Manual. + "Yocto Project Kernel" bulleted + item in the Yocto Project Development Manual. Once you have cloned the kernel Git repository on your local machine, you can @@ -114,8 +114,9 @@ of actions, or into an existing equivalent script that is already part of the shipped kernel. Extra features are appended to the top-level feature description. - These features can come from the KERNEL_FEATURES variable in - recipes. + These features can come from the + KERNEL_FEATURES + variable in recipes. Each extra feature is located, compiled and appended to the script as described in step three. The script is executed to produce a series of meta-* @@ -211,7 +212,7 @@ - What this means, is that all the generated files for a particular machine or BSP are now in + This behavior means that all the generated files for a particular machine or BSP are now in the build tree directory. The files include the final .config file, all the .o files, the .a files, and so forth. @@ -224,7 +225,7 @@ Workflow Examples - As previously noted, the Yocto Project kernel has built in Git integration. + As previously noted, the Yocto Project kernel has built-in Git integration. However, these utilities are not the only way to work with the kernel repository. The Yocto Project has not made changes to Git or to other tools that would invalidate alternate workflows. @@ -240,7 +241,7 @@ . You can find a simple overview of using Git with the Yocto Project in the "Git" - section of The Yocto Project Development Manual. + section of the Yocto Project Development Manual.
@@ -419,10 +420,10 @@ # bulk export of ALL modifications without separation or division # of the changes - > git add . - > git commit -s -a -m >commit message< + $ git add . + $ git commit -s -a -m <msg> or - > git commit -s -a # and interact with $EDITOR + $ git commit -s -a # and interact with $EDITOR @@ -459,15 +460,15 @@ # edit a file - > vi >path</file + $ vi <path>/file # stage the change - > git add >path</file + $ git add <path>/file # commit the change - > git commit -s + $ git commit -s # remove a file - > git rm >path</file + $ git rm <path>/file # commit the change - > git commit -s + $ git commit -s ... etc. @@ -494,25 +495,25 @@ associated with development by using the following commands: - > Git add >path</file - > Git commit --amend - > Git rebase or Git rebase -i + $ Git add <path>/file + $ Git commit --amend + $ Git rebase or Git rebase -i Again, assuming that the changes have not been pushed upstream, and that - no pending works-in-progress exists (use git status to check), then + no pending works-in-progress exist (use git status to check), then you can revert (undo) commits by using the following commands: # remove the commit, update working tree and remove all # traces of the change - > git reset --hard HEAD^ + $ git reset --hard HEAD^ # remove the commit, but leave the files changed and staged for re-commit - > git reset --soft HEAD^ + $ git reset --soft HEAD^ # remove the commit, leave file change, but not staged for commit - > git reset --mixed HEAD^ + $ git reset --mixed HEAD^ @@ -540,7 +541,7 @@ This section describes how you can extract committed changes from a working directory by exporting them as patches. - Once extracted, you can use the patches for upstream submission, + Once the changes have been extracted, you can use the patches for upstream submission, place them in a Yocto Project template for automatic kernel patching, or apply them in many other common uses. @@ -560,7 +561,7 @@ # began. It can also be the parent branch if a branch was created # before development began. - > git format-patch -o <dir> <first commit>..<last commit> + $ git format-patch -o <dir> <first commit>..<last commit> @@ -570,14 +571,14 @@ # Identify commits of interest. # If the tree was tagged before development - > git format-patch -o <save dir> <tag> + $ git format-patch -o <save dir> <tag> # If no tags are available - > git format-patch -o <save dir> HEAD^ # last commit - > git format-patch -o <save dir> HEAD^^ # last 2 commits - > git whatchanged # identify last commit - > git format-patch -o <save dir> <commit id> - > git format-patch -o <save dir> <rev-list> + $ git format-patch -o <save dir> HEAD^ # last commit + $ git format-patch -o <save dir> HEAD^^ # last 2 commits + $ git whatchanged # identify last commit + $ git format-patch -o <save dir> <commit id> + $ git format-patch -o <save dir> <rev-list>
@@ -588,14 +589,14 @@ This section describes how you can export changes from a working directory by pushing the changes into a master repository or by making a pull request. - Once you have pushed the changes in the master repository, you can then + Once you have pushed the changes to the master repository, you can then pull those same changes into a new kernel build at a later time. Use this command form to push the changes: - > git push ssh://<master_server>/<path_to_repo> + $ git push ssh://<master_server>/<path_to_repo> <local_branch>:<remote_branch> @@ -605,13 +606,13 @@ yocto/standard/common-pc/base to the remote branch with the same name in the master repository //git.mycompany.com/pub/git/kernel-3.4. - > git push ssh://git.mycompany.com/pub/git/kernel-3.4 \ + $ git push ssh://git.mycompany.com/pub/git/kernel-3.4 \ yocto/standard/common-pc/base:yocto/standard/common-pc/base
- A pull request entails using git request-pull to compose + A pull request entails using the git request-pull command to compose an email to the maintainer requesting that a branch be pulled into the master repository, see for an example. @@ -673,8 +674,8 @@ The following is an example of dumping patches for external submission: # dump the last 4 commits - > git format-patch --thread -n -o ~/rr/ HEAD^^^^ - > git send-email --compose --subject '[RFC 0/N] <patch series summary>' \ + $ git format-patch --thread -n -o ~/rr/ HEAD^^^^ + $ git send-email --compose --subject '[RFC 0/N] <patch series summary>' \ --to foo@yoctoproject.org --to bar@yoctoproject.org \ --cc list@yoctoproject.org ~/rr # the editor is invoked for the 0/N patch, and when complete the entire @@ -741,9 +742,9 @@ import the yocto/standard/common-pc/base kernel into a secondary SCM: - > git checkout yocto/standard/common-pc/base - > cd .. ; echo linux/.git > .cvsignore - > cvs import -m "initial import" linux MY_COMPANY start + $ git checkout yocto/standard/common-pc/base + $ cd .. ; echo linux/.git > .cvsignore + $ cvs import -m "initial import" linux MY_COMPANY start @@ -755,11 +756,11 @@ The following commands illustrate how you can condense and merge two BSPs into a second SCM: - > git checkout yocto/standard/common-pc/base - > git merge yocto/standard/common-pc-64/base + $ git checkout yocto/standard/common-pc/base + $ git merge yocto/standard/common-pc-64/base # resolve any conflicts and commit them - > cd .. ; echo linux/.git > .cvsignore - > cvs import -m "initial import" linux MY_COMPANY start + $ cd .. ; echo linux/.git > .cvsignore + $ cvs import -m "initial import" linux MY_COMPANY start @@ -843,7 +844,7 @@ string, this simply means that modifications in the source directory have not been committed. - > git status + $ git status @@ -857,8 +858,8 @@ To brute force pickup and commit all such pending changes, enter the following: - > git add . - > git commit -s -a -m "getting rid of -dirty" + $ git add . + $ git commit -s -a -m "getting rid of -dirty" -- cgit v1.2.3-54-g00ecf