diff options
author | Chris Larson <kergoth@openedhand.com> | 2006-08-28 10:43:04 +0000 |
---|---|---|
committer | Chris Larson <kergoth@openedhand.com> | 2006-08-28 10:43:04 +0000 |
commit | 72d29794cc9fdcf724481d4fe7f78b22748e9cf4 (patch) | |
tree | bb63700632efaff4377d64d079ab6d04fa3d8604 | |
parent | c813d14c9ffb9c0672a28d68faf85bf3575e9a2f (diff) | |
download | poky-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
-rwxr-xr-x | poky-init-build-env | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/poky-init-build-env b/poky-init-build-env index b9be03fb3c..b8e377d6bc 100755 --- a/poky-init-build-env +++ b/poky-init-build-env | |||
@@ -30,6 +30,7 @@ fi | |||
30 | # | 30 | # |
31 | OEROOT=`pwd` | 31 | OEROOT=`pwd` |
32 | 32 | ||
33 | SITEDIR=$HOME/.oe/ | ||
33 | BBDIR=$OEROOT/bitbake/ | 34 | BBDIR=$OEROOT/bitbake/ |
34 | PKGDIR=$OEROOT/meta/ | 35 | PKGDIR=$OEROOT/meta/ |
35 | BUILDDIR=$OEROOT/build/ | 36 | BUILDDIR=$OEROOT/build/ |
@@ -40,6 +41,7 @@ PATH=$BBDIR/bin/:$PATH | |||
40 | cd $BUILDDIR | 41 | cd $BUILDDIR |
41 | 42 | ||
42 | # Remove any symlinks from paths | 43 | # Remove any symlinks from paths |
44 | SITEDIR=`readlink -f $SITEDIR` | ||
43 | BBDIR=`readlink -f $BBDIR` | 45 | BBDIR=`readlink -f $BBDIR` |
44 | PKGDIR=`readlink -f $PKGDIR` | 46 | PKGDIR=`readlink -f $PKGDIR` |
45 | BUILDDIR=`readlink -f $BUILDDIR` | 47 | BUILDDIR=`readlink -f $BUILDDIR` |
@@ -53,14 +55,19 @@ BBPATH=$BBDIR | |||
53 | if test x"$BBDIR" != x"$PKGDIR"; then | 55 | if test x"$BBDIR" != x"$PKGDIR"; then |
54 | BBPATH=$PKGDIR:$BBPATH | 56 | BBPATH=$PKGDIR:$BBPATH |
55 | fi | 57 | fi |
58 | if test x"$SITEDIR" != x"$SITEDIR" && test -d $SITEDIR; then | ||
59 | BBPATH=$SITEDIR:$BBPATH | ||
60 | fi | ||
56 | if test x"$PKGDIR" != x"$BUILDDIR"; then | 61 | if test x"$PKGDIR" != x"$BUILDDIR"; then |
57 | BBPATH=$BUILDDIR:$BBPATH | 62 | BBPATH=$BUILDDIR:$BBPATH |
58 | fi | 63 | fi |
59 | export BBPATH | 64 | export 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 |
63 | LD_LIBRARY_PATH= | 68 | unset TERMINFO |
69 | # kill this so we don't link non-arm libraries | ||
70 | unset 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 |
65 | export PATH LD_LIBRARY_PATH OEROOT | 72 | export 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 |