]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-init-build-env: add $HOME/.oe to BBPATH, for setting a per user conf/site.conf...
authorChris Larson <kergoth@openedhand.com>
Mon, 28 Aug 2006 10:43:04 +0000 (10:43 +0000)
committerChris Larson <kergoth@openedhand.com>
Mon, 28 Aug 2006 10:43:04 +0000 (10:43 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@667 311d38ba-8fff-0310-9ca6-ca027cbcb966

poky-init-build-env

index b9be03fb3cd9f52f5d85a387a8a388d9614372dc..b8e377d6bc7005ec1d63bdb838a2078078f388a8 100755 (executable)
@@ -30,6 +30,7 @@ fi
 #
 OEROOT=`pwd`
 
+SITEDIR=$HOME/.oe/
 BBDIR=$OEROOT/bitbake/
 PKGDIR=$OEROOT/meta/
 BUILDDIR=$OEROOT/build/
@@ -40,6 +41,7 @@ PATH=$BBDIR/bin/:$PATH
 cd $BUILDDIR
 
 # Remove any symlinks from paths
+SITEDIR=`readlink -f $SITEDIR`
 BBDIR=`readlink -f $BBDIR`
 PKGDIR=`readlink -f $PKGDIR`
 BUILDDIR=`readlink -f $BUILDDIR`
@@ -53,14 +55,19 @@ BBPATH=$BBDIR
 if test x"$BBDIR" != x"$PKGDIR"; then
        BBPATH=$PKGDIR:$BBPATH
 fi
+if test x"$SITEDIR" != x"$SITEDIR" && test -d $SITEDIR; then
+       BBPATH=$SITEDIR:$BBPATH
+fi
 if test x"$PKGDIR" != x"$BUILDDIR"; then
        BBPATH=$BUILDDIR:$BBPATH
 fi
 export BBPATH
 
-
-# Blank this so we don't link non-arm libraries
-LD_LIBRARY_PATH=
+# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
+# install' if set
+unset TERMINFO
+# kill this so we don't link non-arm libraries
+unset LD_LIBRARY_PATH
 # Don't export TARGET_ARCH - it *will* cause build failures
 export PATH LD_LIBRARY_PATH OEROOT
 # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really