summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-20 15:59:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-21 00:29:29 +0100
commit46d0cc3dc88307d69a7884c0e5c79e0c8d5e4dc7 (patch)
treea5ec6b373a47da71cd2e474aac453ce022579179 /scripts/oe-buildenv-internal
parent211ae3b4dfe5e55b8fa18cfb9c71fa37f06c9748 (diff)
downloadpoky-46d0cc3dc88307d69a7884c0e5c79e0c8d5e4dc7.tar.gz
Rename poky-init-build-env to oe-init-build-env
(From OE-Core rev: fa6176219b741eed346b21a3d923e9abc9b5442a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"