summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe MacDonald <joe.macdonald@windriver.com>2013-08-01 10:29:19 -0400
committerSaul Wold <sgw@linux.intel.com>2013-08-02 08:01:40 -0700
commit94495c5a11d31e258a42cabb5ca1487421fe5495 (patch)
tree0c5f5ef5b49f0f5c9277febcc671646b10529d65
parent8253abeee10189b828336b791c3421d240a2e69b (diff)
downloadopenembedded-core-94495c5a11d31e258a42cabb5ca1487421fe5495.tar.gz
openembedded-core-94495c5a11d31e258a42cabb5ca1487421fe5495.tar.bz2
openembedded-core-94495c5a11d31e258a42cabb5ca1487421fe5495.zip
oe-find-native-sysroot: minor optimization
The middle 'cut' in OECORE_NATIVE_SYSROOT isn't doing anything useful, so remove it from the pipeline. Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rwxr-xr-xscripts/oe-find-native-sysroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 9df9b44f42..81d62b8882 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."