diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-06-27 12:38:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-28 20:54:55 +0100 |
commit | fb9cf84b1d537e2b8c26cd78f6ac27c55a7e79fc (patch) | |
tree | 76a7866972ba60970002991aca03cc517f4f8341 | |
parent | 62489e58ca9975f58b48fc2bd8cf27fd22e25564 (diff) | |
download | openembedded-core-fb9cf84b1d537e2b8c26cd78f6ac27c55a7e79fc.tar.gz openembedded-core-fb9cf84b1d537e2b8c26cd78f6ac27c55a7e79fc.tar.bz2 openembedded-core-fb9cf84b1d537e2b8c26cd78f6ac27c55a7e79fc.zip |
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@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-x | scripts/oe-find-native-sysroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot index 235a67c95c..350ea21373 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 |