summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-buildenv-internal')
-rwxr-xr-xscripts/oe-buildenv-internal58
1 files changed, 58 insertions, 0 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
new file mode 100755
index 0000000000..03b078f299
--- /dev/null
+++ b/scripts/oe-buildenv-internal
@@ -0,0 +1,58 @@
1#!/bin/sh
2
3# Poky Build Enviroment Setup Script
4#
5# Copyright (C) 2006-2007 OpenedHand Ltd.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21# It is assumed OEROOT is already defined when this is called
22if [ -z "$OEROOT" ]; then
23 echo >&2 "Error: OEROOT is not defined!"
24 return
25fi
26
27if [ "x$BDIR" = "x" ]; then
28 if [ "x$1" = "x" ]; then
29 BDIR="build"
30 else
31 BDIR=`readlink -f "$1"`
32 fi
33fi
34if expr "$BDIR" : '/.*' > /dev/null ; then
35 BUILDDIR="$BDIR"
36else
37 BUILDDIR="`pwd`/$BDIR"
38fi
39unset BDIR
40
41BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
42
43BITBAKEDIR=`readlink -f "$BITBAKEDIR"`
44BUILDDIR=`readlink -f "$BUILDDIR"`
45
46if ! (test -d "$BITBAKEDIR"); then
47 echo >&2 "Error: The bitbake directory ($BITBAKEDIR) does not exist! Did you source the script in the poky directory?"
48 return
49fi
50
51PATH="${OEROOT}/scripts:$BITBAKEDIR/bin/:$PATH"
52unset BITBAKEDIR
53
54# Used by the poky-qemu script
55export BUILDDIR
56export PATH
57
58export BB_ENV_EXTRAWHITE="MACHINE DISTRO POKYMODE POKYLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS GIT_PROXY_COMMAND"