From 54f42088e2bdf35916a319eaaa1985e5b322cf41 Mon Sep 17 00:00:00 2001 From: "Theodore A. Roth" Date: Tue, 24 Feb 2009 16:30:31 +0000 Subject: getting_oe.xml: Update documentation. * New section about directory structure. * Update 'Getting BitBake' section. Resubmitted against .dev instead of .documentation. Signed-off-by: Theodore A. Roth --- docs/usermanual/chapters/getting_oe.xml | 103 +++++++++++++++++++++++++------- 1 file changed, 83 insertions(+), 20 deletions(-) diff --git a/docs/usermanual/chapters/getting_oe.xml b/docs/usermanual/chapters/getting_oe.xml index 9238e4f29d..c7eb7ec7de 100644 --- a/docs/usermanual/chapters/getting_oe.xml +++ b/docs/usermanual/chapters/getting_oe.xml @@ -2,30 +2,93 @@ Getting Started +
+ OpenEmbedded Directory Structure + + Before you begin downloading OpenEmbedded, you need to setup your + working environment. + + The first step is to decide where on your system you wish to + work. This document will use the $OEBASE variable to + denote the base directory of the OpenEmbedded environment. For + example, $OEBASE could + be /home/joe/work/oe. + + The base directory of your OpenEmbedded environment + ($OEBASE) is the location where sources will be checked + out (or unpacked). You must choose a location with no symlinks + above it. + + To create the directory structure: + + +$ mkdir -p $OEBASE/build/conf +$ cd $OEBASE + + The $OEBASE/build directory will contain your + local configurations and extensions to the OpenEmbedded system which allow + you to build your applications and images. + + + The $OEBASE will also contain both bitbake/ and + openembedded/ directories. These will be discussed in + and + . + +
+
Getting <application>BitBake</application> - The required version of BitBake is - changing rapidly. At the time of writing (end 2007) - BitBake 1.8.latest was required. - - A safe method is to get the BitBake from - a stable Subversion branch (those with an even minor number). -svn co http://svn.berlios.de/svnroot/repos/bitbake/branches/bitbake-1.8 -... -A bitbake-1.8/classes/base.bbclass -U bitbake-1.8 -At revision 827. - BitBake is checked out now; - this completes the first and most critical dependency of OpenEmbedded. - Issuing svn up in the - bitbake-1.8 directory will update - BitBake to the latest stable version, but - generally it is a good idea to stick with a specific known working version - of BitBake until OpenEmbedded asks you to - upgrade. + Before using OE, you must first obtain the build tool it needs: + bitbake. + + It is recommended to run bitbake without installing it, as a sibling + directory of openembedded/ + and build/ directories. Indeed, as bitbake is written + in python it does not need compilation for being used. You'll just have to + set the PATH variable so that the BitBake tools are accessible (see + ). + +
Getting <application>BitBake</application> Using Subversion + To checkout the latest version of the BitBake 1.8 branch, use the + following command: + +$ cd $OEBASE +$ svn co svn://svn.berlios.de/bitbake/branches/bitbake-1.8/ bitbake + + + + BitBake is checked out now and + the $OEBASE directory will contain + a bitbake/ subdirectory. + + If you need to access a Subversion server through a proxy, see the + SVN FAQ + +
+ +
Updating <application>BitBake</application> + Bitbake is being revised fairly often. Periodically it's a good + idea to check the repository of bitbake stable branches to see if a + new stable branch is available or if the current branch has been + revised. Compare your existing bitbake directory with the latest + bitbake branch in the repository. Your existing bitbake branch and + its 'last changed revision' number can be found as follows: + + $ cd $OEBASE/bitbake; svn info + + If there is a new stable branch, you will want to move or delete + your existing bitbake directory and repeat the process listed above + under "To obtain bitbake". If there is no new branch, it is easy to + update bitbake: + + $ cd $OEBASE/bitbake; svn update + +
+
Getting OpenEmbedded @@ -67,4 +130,4 @@ bitbake <recipe_name> This section is a stub, help us by expanding it
-
\ No newline at end of file + -- cgit v1.2.3