From 21ce4e481ee812aa17ba5a08b327d91fa241c4c5 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 14 Sep 2012 12:35:05 -0700 Subject: [PATCH] documentation: Build example in QS and poky.ent variable added I changed the example that builds an image so that it uses the default build directory. It seems like the natural thing to do. Also added a new poky.ent variable named OE_INIT_FILE. This variable is set to the name of the build environment script (From yocto-docs rev: f0db49e27e89aefb6d43a0b455c6ecc529399c27) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky.ent | 1 + .../yocto-project-qs/yocto-project-qs.xml | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/documentation/poky.ent b/documentation/poky.ent index 342865acfd..5aa4da8ba1 100644 --- a/documentation/poky.ent +++ b/documentation/poky.ent @@ -47,3 +47,4 @@ + diff --git a/documentation/yocto-project-qs/yocto-project-qs.xml b/documentation/yocto-project-qs/yocto-project-qs.xml index b37a45f337..3fde5b7d08 100644 --- a/documentation/yocto-project-qs/yocto-project-qs.xml +++ b/documentation/yocto-project-qs/yocto-project-qs.xml @@ -387,7 +387,8 @@ $ wget &YOCTO_POKY_DL_URL; $ tar xjf &YOCTO_POKY;.tar.bz2 - $ source &OE_INIT_PATH; &YOCTO_POKY;-build + $ cd &YOCTO_POKY; + $ source &OE_INIT_FILE; @@ -412,12 +413,15 @@ The second command extracts the files from the tarball and places them into a directory named &YOCTO_POKY; in the current directory. - The third command runs the Yocto Project environment setup script. - Running this script defines OpenEmbedded build environment settings needed to + The third and fourth commands change the working directory to the + source directory + and run the Yocto Project environment setup script. + Running this script defines OpenEmbedded build environment settings needed to complete the build. The script also creates the build directory, - which is &YOCTO_POKY;-build in this case. + 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 @@ -426,7 +430,7 @@ Take some time to examine your local.conf file - in your project's configuration directory. + in your project's configuration directory, which is found in the build directory. The defaults in that file should work fine. However, there are some variables of interest at which you might look.