]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-env-internal: Cleanup after the recent layer improvements
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 22 Jul 2010 12:19:24 +0000 (13:19 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 22 Jul 2010 12:19:24 +0000 (13:19 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
scripts/poky-env-internal

index d25816c6a6b839debbadf63852ebbd92913a52fa..c814314744e24398e87f865038270cbfdd0f81bc 100755 (executable)
@@ -44,55 +44,17 @@ if ! (test -w "$BUILDDIR"); then
 fi
 
 BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
-PKGDIR="$OEROOT/meta/"
-BBPATH="$BITBAKEDIR $PKGDIR"
-
-#
-# Add in any extra meta-* repositories to BBPATH
-#
-METAREPOS=`cd $OEROOT; find . -maxdepth 1 -name 'meta-*' -type d| sed -e 's#./##g'`
-for repo in $METAREPOS
-do
-    # meta-openmoko is disabled by default - see local.conf.sample to enable it
-    if [ $repo = "meta-openmoko" ]; then
-        continue
-    fi
-    # meta-extras is disabled by default - see local.conf.sample to enable it
-    if [ $repo = "meta-extras" ]; then
-        continue
-    fi
-    if [ -e $OEROOT/$repo/poky-extra-environment ]; then
-             . $OEROOT/$repo/poky-extra-environment
-    fi
-done
-
-BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR"
-
-#
-# Remove any symlinks from BBPATH
-#
-NEWPATH=""
-for p in $BBPATH
-do
-    p2=`readlink -f "$p"`
-    NEWPATH="$p2:$NEWPATH"
-done
-BBPATH="$NEWPATH"
-
-
-MSG=''
 
 PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH"
 
 # Remove any symlinks from paths
 BITBAKEDIR=`readlink -f "$BITBAKEDIR"`
-PKGDIR=`readlink -f "$PKGDIR"`
 BUILDDIR=`readlink -f "$BUILDDIR"`
 OEROOT=`readlink -f "$OEROOT"`
 
 cd "$BUILDDIR"
 
-if ! (test -d "$BITBAKEDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then
+if ! (test -d "$BITBAKEDIR" && test -d "$BUILDDIR"); then
     echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?"
     return
 fi
@@ -124,7 +86,7 @@ fi
 unset POKYLOCALCONF
 unset POKYLAYERCONF
 
-export BBPATH OEROOT BUILDDIR
+export OEROOT BUILDDIR
 
 # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make
 # install' if set