diff options
Diffstat (limited to 'scripts/oe-buildenv-internal')
| -rwxr-xr-x | scripts/oe-buildenv-internal | 58 |
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 | ||
| 22 | if [ -z "$OEROOT" ]; then | ||
| 23 | echo >&2 "Error: OEROOT is not defined!" | ||
| 24 | return | ||
| 25 | fi | ||
| 26 | |||
| 27 | if [ "x$BDIR" = "x" ]; then | ||
| 28 | if [ "x$1" = "x" ]; then | ||
| 29 | BDIR="build" | ||
| 30 | else | ||
| 31 | BDIR=`readlink -f "$1"` | ||
| 32 | fi | ||
| 33 | fi | ||
| 34 | if expr "$BDIR" : '/.*' > /dev/null ; then | ||
| 35 | BUILDDIR="$BDIR" | ||
| 36 | else | ||
| 37 | BUILDDIR="`pwd`/$BDIR" | ||
| 38 | fi | ||
| 39 | unset BDIR | ||
| 40 | |||
| 41 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | ||
| 42 | |||
| 43 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` | ||
| 44 | BUILDDIR=`readlink -f "$BUILDDIR"` | ||
| 45 | |||
| 46 | if ! (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 | ||
| 49 | fi | ||
| 50 | |||
| 51 | PATH="${OEROOT}/scripts:$BITBAKEDIR/bin/:$PATH" | ||
| 52 | unset BITBAKEDIR | ||
| 53 | |||
| 54 | # Used by the poky-qemu script | ||
| 55 | export BUILDDIR | ||
| 56 | export PATH | ||
| 57 | |||
| 58 | export 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" | ||
