[oe-commits] [openembedded-core] 26/28: scripts/oe-find-native-sysroot: fix a incomplete regexp

git at git.openembedded.org git at git.openembedded.org
Wed Jun 28 19:56:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit fb9cf84b1d537e2b8c26cd78f6ac27c55a7e79fc
Author: Ming Liu <peter.x.liu at external.atlascopco.com>
AuthorDate: Tue Jun 27 12:38:49 2017 +0200

    scripts/oe-find-native-sysroot: fix a incomplete regexp
    
    A "=" is missing in the regexp, which leads it match multiple results
    if STAGING_DIR_NATIVE has overrides, for instance:
    ...
    STAGING_DIR_NATIVE="xxxx"
    STAGING_DIR_NATIVE_qemux86="yyyy"
    ...
    
    it will match both of them without "=".
    
    Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 scripts/oe-find-native-sysroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 235a67c..350ea21 100755
--- a/scripts/oe-find-native-sysroot
+++ b/scripts/oe-find-native-sysroot
@@ -50,7 +50,7 @@ BITBAKE_E=""
 set_oe_native_sysroot(){
     echo "Running bitbake -e $1"
     BITBAKE_E="`bitbake -e $1`"
-    OECORE_NATIVE_SYSROOT=`echo "$BITBAKE_E" | grep ^STAGING_DIR_NATIVE | cut -d '"' -f2`
+    OECORE_NATIVE_SYSROOT=`echo "$BITBAKE_E" | grep ^STAGING_DIR_NATIVE= | cut -d '"' -f2`
 
     if [ "x$OECORE_NATIVE_SYSROOT" = "x" ]; then
         # This indicates that there was an error running bitbake -e that

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list