From 37777b7da958fb4dd4a80eb3d3907a8ebe15d713 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Wed, 23 Oct 2013 15:44:48 -0700 Subject: yocto-project-qs: Updated "Building an Image" example to use Git repo Fixes [YOCTO #5368] Partially addresses this issue, which is removal of examples that use a poky tarball. I changed the example so that it clones the upstream poky repo and then checks out a local branch named for the most recent release. (From yocto-docs rev: 58bd7cf3a09ccbe63b5349edb3d68f35e9eab339) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../yocto-project-qs/yocto-project-qs.xml | 43 +++++++++++----------- 1 file changed, 22 insertions(+), 21 deletions(-) (limited to 'documentation/yocto-project-qs') diff --git a/documentation/yocto-project-qs/yocto-project-qs.xml b/documentation/yocto-project-qs/yocto-project-qs.xml index 3606fe89a0..e8b92d7f82 100644 --- a/documentation/yocto-project-qs/yocto-project-qs.xml +++ b/documentation/yocto-project-qs/yocto-project-qs.xml @@ -414,9 +414,9 @@ - $ wget &YOCTO_POKY_DL_URL; - $ tar xjf &YOCTO_POKY;.tar.bz2 - $ cd &YOCTO_POKY; + $ git clone &YOCTO_GIT_URL;/git/poky + $ cd poky + $ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME; $ source &OE_INIT_FILE; @@ -433,30 +433,31 @@ - In the previous example, the first command retrieves the Yocto Project - release tarball from the source repositories using the - wget command. - Alternatively, you can go to the - Yocto Project website's - "Downloads" page to retrieve the tarball. - The second command extracts the files from the tarball and places - them into a directory named &YOCTO_POKY; in the current - directory. - The third and fourth commands change the working directory to the - Source Directory - and run the Yocto Project + In the previous example, the first command uses + Git to create + a local repository named poky that is a + clone of the upstream Yocto Project + poky repository. + The third command checks out a local branch and + names it &DISTRO_NAME;. + The local branch tracks the upstream branch of the same name. + Creating your own branch based on the released branch ensures + you are using the latest files for that release. + + The final command runs the Yocto Project &OE_INIT_FILE; environment setup script. - Running this script defines OpenEmbedded build environment settings needed to - complete the build. + Running this script defines OpenEmbedded build environment + settings needed to complete the build. The script also creates the Build Directory, - which is build in this case and is located in the - Source Directory. + which is build in this case and is located + in the + Source Directory. After the script runs, your current working directory is set to the Build Directory. - Later, when the build completes, the Build Directory contains all the files - created during the build. + Later, when the build completes, the Build Directory contains + all the files created during the build. For information on running a memory-resident BitBake, see the -- cgit v1.2.3-54-g00ecf