From: Joe MacDonald Date: Thu, 1 Aug 2013 14:29:19 +0000 (-0400) Subject: oe-find-native-sysroot: minor optimization X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0224cb2de529732f5b2caca04c4c673e63f1d6e3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oe-find-native-sysroot: minor optimization The middle 'cut' in OECORE_NATIVE_SYSROOT isn't doing anything useful, so remove it from the pipeline. (From OE-Core rev: 94495c5a11d31e258a42cabb5ca1487421fe5495) Signed-off-by: Joe MacDonald Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot index 9df9b44f420..81d62b8882c 100755 --- a/scripts/oe-find-native-sysroot +++ b/scripts/oe-find-native-sysroot @@ -40,10 +40,10 @@ if [ "x$OECORE_NATIVE_SYSROOT" = "x" ]; then exit 1 fi touch conf/sanity.conf - OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` + OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '"' -f2` rm -f conf/sanity.conf else - OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '=' -f2 | cut -d '"' -f2` + OECORE_NATIVE_SYSROOT=`bitbake -e | grep ^STAGING_DIR_NATIVE | cut -d '"' -f2` fi else echo "Error: Unable to locate bitbake command."