Changes between Version 7 and Version 8 of Setting_up_OpenEmbedded

Show
Ignore:
Timestamp:
12/17/09 02:31:31 (3 years ago)
Author:
einstein
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Setting_up_OpenEmbedded

    v7 v8  
    11This 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. 
    22 
    3 1. Create an empty folder, in this tutorial we use <tt>/usr/src/openaos</tt>. This folder will contain your entire OE environment. 
     31. 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 
     52. 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. 
    46 
    57{{{ 
     
    810}}} 
    911 
    10 2. Download and install !BitBake in this new folder. 
     123. 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: 
    1113 
    1214{{{ 
     15comming soon 
     16}}} 
     17 
     18And once in a while, run an update: 
     19 
     20{{{ 
     21cd /usr/src/openaos/build 
     22svn update 
     23}}} 
     24 
     254. The next step is to download the build tool, !BitBake: 
     26 
     27{{{ 
     28cd /usr/src/openaos/build 
    1329wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz 
    1430tar -xzf bitbake-1.8.18.tar.gz bitbake 
     
    1632}}} 
    1733 
    18 3. Checkout the OE git repository. 
     345. 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: 
    1935 
    2036{{{ 
    2137git clone git://git.openembedded.org/openembedded 
     38... 
     39git checkout stable/2009 
    2240}}} 
    2341 
    24 Once in a while, run an update on your git repository: 
     42The stable/2009 branch ''should'' not change much, but once in a while, run an update on your git repository: 
    2543 
    2644{{{ 
     
    2947}}} 
    3048 
    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>. 
     496. 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: 
    3250 
    3351{{{ 
    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 
    4054}}} 
    4155 
    42 And run it with <tt>source setup_env</tt> 
     567. 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: 
    4357 
    44 5. Checkout our OE overlay. 
     58{{{ 
     59cd /usr/src/openaos/build/profiles/openaos 
     60source profile.sh 
     61}}} 
    4562 
    46  (to be continued!) 
     63To 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.