| 3 | | (to be continued). |
| | 3 | 1. Create an empty folder, in this tutorial we use <tt>/usr/src/openaos</tt>. This folder will contain your entire OE environment. |
| | 4 | |
| | 5 | mkdir -p /usr/src/openaos |
| | 6 | cd /usr/src/openaos |
| | 7 | |
| | 8 | 2. Download and install BitBake in this new folder. |
| | 9 | |
| | 10 | wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz |
| | 11 | tar -xzf bitbake-1.8.18.tar.gz bitbake |
| | 12 | mv bitbake-1.8.18 bitbake |
| | 13 | |
| | 14 | 3. Checkout the OpenEmbedded git repository. |
| | 15 | |
| | 16 | git clone git://git.openembedded.org/openembedded |
| | 17 | |
| | 18 | Once in a while, run an update on your git repository: |
| | 19 | |
| | 20 | cd /usr/src/openaos/openembedded |
| | 21 | git pull |
| | 22 | |
| | 23 | 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>. |
| | 24 | |
| | 25 | export OETREE=/home/einstein/Desktop/oe-openaos |
| | 26 | export BBPATH=${OETREE}/:${OETREE}/build/:${OETREE}/openembedded/ |
| | 27 | export PATH=${OETREE}/bitbake/bin:$PATH |
| | 28 | export LANG=C |
| | 29 | export BB_ENV_EXTRAWHITE="MACHINE DISTRO OETREE ANGSTROM_MODE ANGSTROMLIBC LIBC" |
| | 30 | cd ${OETREE}/build/ |
| | 31 | |
| | 32 | And run it with <tt>source setup_env</tt> |
| | 33 | |
| | 34 | 5. Checkout our OE overlay. |
| | 35 | |
| | 36 | (to be continued!) |