From 81629e3aa5c8e49d7c715223796aa7083ebfe96b Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 31 Jan 2012 18:24:48 -0600 Subject: documentation/dev-manual/dev-manual-bsp-appendix.xml: edits to poky repo setup There is confusion as to how to set up the Git repository and be sure you have the snapshot of the release. I have changed the description to use a tag rather than the branch names. The stuff is out for review with Josh. (From yocto-docs rev: 2521873e1bf8e1ad398fae4b7297f8746a34258f) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-bsp-appendix.xml | 30 +++++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-bsp-appendix.xml b/documentation/dev-manual/dev-manual-bsp-appendix.xml index aecb24f725..51fb3f4f4f 100644 --- a/documentation/dev-manual/dev-manual-bsp-appendix.xml +++ b/documentation/dev-manual/dev-manual-bsp-appendix.xml @@ -55,21 +55,37 @@ Once you have the local poky Git repository set up, - you have many development branches from which you can work. - From inside the repository you can see the branch names and the tag names used - in the Git repository using either of the following two commands: + you have all the development branches available to you from which you can work. + However, you need to be sure that your local repository reflects the specific + snapshot of the release you are interested in. + From inside the repository you can see the development branches that represent + areas of development that have diverged from the main (master) branch. + You can also see the tag names used to mark snapshots of stable releases or + points in the repository. + Use the following commands to list out the branches and the tags in the repository, + respectively. $ git branch -a $ git tag -l - For this example we are going to use the Yocto Project 1.1 Release, which is code + For this example, we are going to use the Yocto Project 1.1 Release, which is code named "edison". - These commands create a local branch named edison - that tracks the remote branch of the same name. + To make sure we have a local area (branch in Git terms) on our machine that tracks + the snapshot of the 1.1 release, we can use the following commands: - $ git checkout -b edison origin/edison + $ cd ~/poky + $ git fetch --tags + $ git checkout edison-6.0 -b edison Switched to a new branch 'edison' + The git fetch --tags is somewhat redundant since you just set + up the repository and should have all the tags. + The fetch command makes sure all the tags are available in your + local repository. + The Git checkout command with the -b option + creates a local branch for you named edison. + Your local branch tracks the Yocto Project 1.1 released tarball marked with the + edison-6.0 tag in the source repositories. -- cgit v1.2.3-54-g00ecf