aa9e884ad5def7ff79bc90a62d21e937dec64afb
[pandora-oe-environment.git] / op-env-oe.sh
1 #!/bin/sh
2
3 # OpenPandora OpenEmbedded Enviroment Script
4 # By John Willis (mostly borrowed from Poky) 
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20 if test x"$0" = x"./op-env-oe.sh"; then
21         echo "Error: Please run via '. ./op-env-oe.sh'"
22 fi
23
24 OE_ENV_TOP=${PWD}
25 export OE_ENV_TOP
26
27 OE_METADATA=${OE_ENV_TOP}/metadata
28 export OE_METADATA
29
30 PATH=${OE_ENV_TOP}/bitbake/bin:$PATH
31 export PATH
32
33 BBPATH=${OE_ENV_TOP}/build:${OE_METADATA}/openembedded.git:${OE_METADATA}/openpandora.oe.git:${OE_METADATA}/user.collection
34 export BBPATH
35
36 OEBRANCH=${OE_METADATA}/openembedded.git
37 export OEBRANCH
38
39 PANDORAOVERLAY=${OE_METADATA}/openpandora.oe.git
40 export PANDORAOVERLAY
41
42 USEROVERLAY=${OE_METADATA}/user.collection
43 export USEROVERLAY
44
45 export BB_ENV_EXTRAWHITE="MACHINE DISTRO ANGSTROM_MODE OE_ENV_TOP OE_METADATA OEBRANCH PANDORAOVERLAY USEROVERLAY"