summaryrefslogtreecommitdiffstats
path: root/poky-init-build-env
diff options
context:
space:
mode:
authorChris Larson <kergoth@openedhand.com>2006-08-28 10:43:04 (GMT)
committerChris Larson <kergoth@openedhand.com>2006-08-28 10:43:04 (GMT)
commit72d29794cc9fdcf724481d4fe7f78b22748e9cf4 (patch)
treebb63700632efaff4377d64d079ab6d04fa3d8604 /poky-init-build-env
parentc813d14c9ffb9c0672a28d68faf85bf3575e9a2f (diff)
downloadpoky-72d29794cc9fdcf724481d4fe7f78b22748e9cf4.tar.gz
poky-init-build-env: add $HOME/.oe to BBPATH, for setting a per user conf/site.conf for settings common to all build dirs. unset TERMINFO to avoid glibc pulling in the user's terminal information files.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@667 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-xpoky-init-build-env13
1 files changed, 10 insertions, 3 deletions
diff --git a/poky-init-build-env b/poky-init-build-env
index b9be03f..b8e377d 100755
--- a/poky-init-build-env
+++ b/poky-init-build-env
@@ -30,6 +30,7 @@ fi
30# 30#
31OEROOT=`pwd` 31OEROOT=`pwd`
32 32
33SITEDIR=$HOME/.oe/
33BBDIR=$OEROOT/bitbake/ 34BBDIR=$OEROOT/bitbake/
34PKGDIR=$OEROOT/meta/ 35PKGDIR=$OEROOT/meta/
35BUILDDIR=$OEROOT/build/ 36BUILDDIR=$OEROOT/build/
@@ -40,6 +41,7 @@ PATH=$BBDIR/bin/:$PATH
40cd $BUILDDIR 41cd $BUILDDIR
41 42
42# Remove any symlinks from paths 43# Remove any symlinks from paths
44SITEDIR=`readlink -f $SITEDIR`
43BBDIR=`readlink -f $BBDIR` 45BBDIR=`readlink -f $BBDIR`
44PKGDIR=`readlink -f $PKGDIR` 46PKGDIR=`readlink -f $PKGDIR`
45BUILDDIR=`readlink -f $BUILDDIR` 47BUILDDIR=`readlink -f $BUILDDIR`
@@ -53,14 +55,19 @@ BBPATH=$BBDIR
53if test x"$BBDIR" != x"$PKGDIR"; then 55if test x"$BBDIR" != x"$PKGDIR"; then
54 BBPATH=$PKGDIR:$BBPATH 56 BBPATH=$PKGDIR:$BBPATH
55fi 57fi
58if test x"$SITEDIR" != x"$SITEDIR" && test -d $SITEDIR; then
59 BBPATH=$SITEDIR:$BBPATH
60fi
56if test x"$PKGDIR" != x"$BUILDDIR"; then 61if test x"$PKGDIR" != x"$BUILDDIR"; then
57 BBPATH=$BUILDDIR:$BBPATH 62 BBPATH=$BUILDDIR:$BBPATH
58fi 63fi
59export BBPATH 64export BBPATH
60 65
61 66# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
62# Blank this so we don't link non-arm libraries 67# install' if set
63LD_LIBRARY_PATH= 68unset TERMINFO
69# kill this so we don't link non-arm libraries
70unset LD_LIBRARY_PATH
64# Don't export TARGET_ARCH - it *will* cause build failures 71# Don't export TARGET_ARCH - it *will* cause build failures
65export PATH LD_LIBRARY_PATH OEROOT 72export PATH LD_LIBRARY_PATH OEROOT
66# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really 73# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really