[oe-commits] Joe MacDonald : oe-find-native-sysroot: minor optimization

git at git.openembedded.org git at git.openembedded.org
Sat Aug 3 09:23:53 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 94495c5a11d31e258a42cabb5ca1487421fe5495
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=94495c5a11d31e258a42cabb5ca1487421fe5495

Author: Joe MacDonald <joe.macdonald at windriver.com>
Date:   Thu Aug  1 10:29:19 2013 -0400

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 at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 scripts/oe-find-native-sysroot |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 9df9b44..81d62b8 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."



More information about the Openembedded-commits mailing list