Changes between Version 7 and Version 8 of Setting_up_OpenEmbedded
- Timestamp:
- 12/17/09 02:31:31 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Setting_up_OpenEmbedded
v7 v8 1 1 This project uses !OpenEmbedded (OE) as its build platform. This tutorial is based on [http://wiki.openembedded.net/index.php/Getting_started the OpenEmbedded.net Getting Started page], refer to it if anything on this page is not clear. 2 2 3 1. Create an empty folder, in this tutorial we use <tt>/usr/src/openaos</tt>. This folder will contain your entire OE environment. 3 1. First, read the section relative to your linux distribution on the [http://wiki.openembedded.net/index.php/OEandYourDistro OE and your distro] page, install the recommended dependencies and resolve any possible issue listed on that page. 4 5 2. Create an empty folder, in this tutorial we use <tt>/usr/src/openaos</tt>. This folder will contain your entire OE environment, the openAOS overlay, and everything else you might ever need for this project. 4 6 5 7 {{{ … … 8 10 }}} 9 11 10 2. Download and install !BitBake in this new folder. 12 3. The openAOS projet maintains its own ''overlay'' on top of the !OpenEmbedded environment. This overlay is available in our Subversion repository, the first step to setup the environment is to check it out: 11 13 12 14 {{{ 15 comming soon 16 }}} 17 18 And once in a while, run an update: 19 20 {{{ 21 cd /usr/src/openaos/build 22 svn update 23 }}} 24 25 4. The next step is to download the build tool, !BitBake: 26 27 {{{ 28 cd /usr/src/openaos/build 13 29 wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz 14 30 tar -xzf bitbake-1.8.18.tar.gz bitbake … … 16 32 }}} 17 33 18 3. Checkout the OE git repository. 34 5. The last thing you need to do is to checkout the official !OpenEmbedded source tree. The openAOS project is based around the stabe/2009 branch: 19 35 20 36 {{{ 21 37 git clone git://git.openembedded.org/openembedded 38 ... 39 git checkout stable/2009 22 40 }}} 23 41 24 Once in a while, run an update on your git repository:42 The stable/2009 branch ''should'' not change much, but once in a while, run an update on your git repository: 25 43 26 44 {{{ … … 29 47 }}} 30 48 31 4. Setup the environment before compiling. You will need to run these commands every time you use your OE environment, so we recommend you create a script <tt>/usr/src/openaos/setup_env</tt>. 49 6. If you did not use <tt>/usr/src/openaos</tt> as the location of your OE environment, then edit the two files below and add the correct location: 32 50 33 51 {{{ 34 export OETREE=/usr/src/openaos 35 export BBPATH=${OETREE}/:${OETREE}/build/:${OETREE}/openembedded/ 36 export PATH=${OETREE}/bitbake/bin:$PATH 37 export LANG=C 38 export BB_ENV_EXTRAWHITE="MACHINE DISTRO OETREE ANGSTROM_MODE ANGSTROMLIBC LIBC" 39 cd ${OETREE}/build/ 52 /usr/src/openaos/build/profiles/openaos/profile.sh 53 /usr/src/openaos/build/profiles/openaos/conf/local.conf 40 54 }}} 41 55 42 And run it with <tt>source setup_env</tt> 56 7. At this point you should be ready to start your first build! Every time you want to use your OE environment for the openAOS project, you will need to run a script that will setup the proper environment variables for the build: 43 57 44 5. Checkout our OE overlay. 58 {{{ 59 cd /usr/src/openaos/build/profiles/openaos 60 source profile.sh 61 }}} 45 62 46 (to be continued!) 63 To build anything in !OpenEmbedded, the command to use is <tt>bitbake</tt> followed by a ''recipe'' name. The available recipes for the openAOS project are located under <tt>/usr/src/openaos/build/openaos/recipes</tt>. In general, if you are modifying anything outside of this folder, you are doing it wrong. The overlay recipes have priority over the openembedded recipes, so for instance, if you want to modify an OE recipe for any reason, first copy it from <tt>openembedded/recipes</tt> to <tt>openaos/recipes</tt> and then only proceed with your changes.
