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
This commit is contained in:
parent
c813d14c9f
commit
72d29794cc
|
@ -30,6 +30,7 @@ fi
|
||||||
#
|
#
|
||||||
OEROOT=`pwd`
|
OEROOT=`pwd`
|
||||||
|
|
||||||
|
SITEDIR=$HOME/.oe/
|
||||||
BBDIR=$OEROOT/bitbake/
|
BBDIR=$OEROOT/bitbake/
|
||||||
PKGDIR=$OEROOT/meta/
|
PKGDIR=$OEROOT/meta/
|
||||||
BUILDDIR=$OEROOT/build/
|
BUILDDIR=$OEROOT/build/
|
||||||
|
@ -40,6 +41,7 @@ PATH=$BBDIR/bin/:$PATH
|
||||||
cd $BUILDDIR
|
cd $BUILDDIR
|
||||||
|
|
||||||
# Remove any symlinks from paths
|
# Remove any symlinks from paths
|
||||||
|
SITEDIR=`readlink -f $SITEDIR`
|
||||||
BBDIR=`readlink -f $BBDIR`
|
BBDIR=`readlink -f $BBDIR`
|
||||||
PKGDIR=`readlink -f $PKGDIR`
|
PKGDIR=`readlink -f $PKGDIR`
|
||||||
BUILDDIR=`readlink -f $BUILDDIR`
|
BUILDDIR=`readlink -f $BUILDDIR`
|
||||||
|
@ -53,14 +55,19 @@ BBPATH=$BBDIR
|
||||||
if test x"$BBDIR" != x"$PKGDIR"; then
|
if test x"$BBDIR" != x"$PKGDIR"; then
|
||||||
BBPATH=$PKGDIR:$BBPATH
|
BBPATH=$PKGDIR:$BBPATH
|
||||||
fi
|
fi
|
||||||
|
if test x"$SITEDIR" != x"$SITEDIR" && test -d $SITEDIR; then
|
||||||
|
BBPATH=$SITEDIR:$BBPATH
|
||||||
|
fi
|
||||||
if test x"$PKGDIR" != x"$BUILDDIR"; then
|
if test x"$PKGDIR" != x"$BUILDDIR"; then
|
||||||
BBPATH=$BUILDDIR:$BBPATH
|
BBPATH=$BUILDDIR:$BBPATH
|
||||||
fi
|
fi
|
||||||
export BBPATH
|
export BBPATH
|
||||||
|
|
||||||
|
# Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
|
||||||
# Blank this so we don't link non-arm libraries
|
# install' if set
|
||||||
LD_LIBRARY_PATH=
|
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
|
# Don't export TARGET_ARCH - it *will* cause build failures
|
||||||
export PATH LD_LIBRARY_PATH OEROOT
|
export PATH LD_LIBRARY_PATH OEROOT
|
||||||
# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
|
# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
|
||||||
|
|
Loading…
Reference in New Issue