[OE-core] [PATCH] oe-find-native-sysroot: minor optimization
joe at deserted.net
joe at deserted.net
Thu Aug 1 14:29:19 UTC 2013
From: Joe MacDonald <joe.macdonald at windriver.com>
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>
---
Really a trivial optimization, I noticed this when I was looking for
something else. It's possible the middle 'cut' is necessary in some
environments, but I wasn't able to reproduce a scenario where removing it
changed the results.
-J.
scripts/oe-find-native-sysroot | 4 ++--
1 file 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."
--
1.7.10.4
More information about the Openembedded-core
mailing list