Received: from [209.85.200.172] (helo=wf-out-1314.google.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1Lc9fq-0002oO-HV for openembedded-devel@openembedded.org; Wed, 25 Feb 2009 03:39:02 +0100 Received: by wf-out-1314.google.com with SMTP id 25so2923251wfc.6 for ; Tue, 24 Feb 2009 18:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:user-agent:mime-version:content-type; bh=HqrQX7unWXonRPoAATAHPUGc9i0K39KjdPNNkr5ORmw=; b=V2xF4QleLQF8QzbM7+ix+yCDk+rjAT/IJA6NNCJkrCDXPqVE+TeUDVkBaI4I5jxyig H1+C7Ez1iYOCLmwKCQc3bN9//4l91x8dLswNCKFaCproUtFJ8ST6Jr3MJc4E7PO2eVHO RufMw+cgCGz2KO1alRQWSexDqyomA1qkgN+XU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:user-agent:mime-version :content-type; b=fWDztgeOQs+tTpDhS5mkdTYZrz8yEyMIn9upnYLua9Gl4ofgUebOAGokxyRxAHZx5z BtULt8Acn4YmrqnatzFmefyHkF9auTL7hAJhYSTVdlnt7taW8NBaUQ8KTEkVUQ+woxwp SHFkTYxQOSdsEpZ4kLUeuy4rceWAgIdag0o1E= Received: by 10.142.165.21 with SMTP id n21mr236722wfe.143.1235529355573; Tue, 24 Feb 2009 18:35:55 -0800 (PST) Received: from dorkboy (68-29-178-240.pools.spcsdns.net [68.29.178.240]) by mx.google.com with ESMTPS id 22sm14294987wfg.23.2009.02.24.18.35.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Feb 2009 18:35:54 -0800 (PST) Date: Tue, 24 Feb 2009 18:35:51 -0800 (PST) From: "Theodore A. Roth" To: openembedded-devel@openembedded.org Message-ID: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) MIME-Version: 1.0 Subject: [PATCH] getting_oe.xml: Add Configuring OpenEmbedded section. X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2009 02:39:03 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII This patch fills in the stub for the "Configuring OpenEmbedded" section. Signed-off-by: Theodore A. Roth --- docs/usermanual/chapters/getting_oe.xml | 97 ++++++++++++++++++++++++++++++- 1 files changed, 96 insertions(+), 1 deletions(-) diff --git a/docs/usermanual/chapters/getting_oe.xml b/docs/usermanual/chapters/getting_oe.xml index 69b9126..3c68504 100644 --- a/docs/usermanual/chapters/getting_oe.xml +++ b/docs/usermanual/chapters/getting_oe.xml @@ -141,7 +141,102 @@ $ git pull
Configuring OpenEmbedded - This section is a stub, help us by expanding it + At this point, your $OEBASE/ directory should + contain at least the following subdirectories: + + build/ + bitbake/ + openembedded/ + + + +
Environment Setup + There are a few environment variables that you will need to set + before you can build software for OpenEmbedded using BitBake. You will + need to set these variables every time you open a terminal for + development. You can automate this in + ~/.profile, /etc/profile, or + perhaps use a script to set the necessary variables for using BitBake. + + + Since the path to your OpenEmbedded installation will be used in + many places, setting it in your environment will allow you to use + the $OEBASE variable in all pathes and make it + easier to change in the future should the need arise. To + set $OEBASE if you use a Bourne like shell + + If you use a CSH like shell (e.g. on a FreeBSD system), you + will set environment variables like this: + +$ setenv VAR_NAME "VAR_VALUE" + + , do this: + + +$ export OEBASE=/path/to/your/oe/installation + + + + If you followed the recommendation to use BitBake from svn, you + will need to add the path to the BitBake executable to + your PATH environment variable like this: + + +$ export PATH=$OEBASE/bitbake/bin:$PATH + + + In order for bitbake to find the configuration files for + OpenEmbedded, you will need to set the BBPATH + variable. + + +$ export BBPATH=$OEBASE/build:$OEBASE/openembedded + + + Finally, if you wish to allow BitBake to inherit + the $OEBASE variable from the environment, you will + need to set the BB_ENV_EXTRAWHITE variable: + + +$ export BB_ENV_EXTRAWHITE="OEBASE" + + Note the absence of the "$" character which implies that you are + setting BB_ENV_EXTRAWHITE to the variable name, not + the variable value. + +
+ +
Local Configuration + It is now time to create your local configuration. While you could + copy the default local.conf.sample like this: + + +$ cd $OEBASE +$ cp openembedded/conf/local.conf.sample build/conf/local.conf +$ vi build/conf/local.conf + + It is actually recommended to start smaller and + keep local.conf.sample in the background. Add + entries from there step-by-step as you understand and need + them. Please, do not just edit + build/conf/local.conf.sample but + actually READ it (read it and then edit it). + + + For building an org.openembedded.dev branch, in + your local.conf file, you should have at least + the following three + entries: BBFILES, DISTRO + and MACHINE. For example, consider the following + mininal local.conf file for the Ångström + distribution and the Openmoko gta01 machine: + + +BBFILES = "${OEBASE}/openembedded/packages/*/*.bb" +DISTRO = "angstrom-2008.1" +MACHINE = "om-gta01" + +
-- 1.5.4.3