A couple of fixes for oe-run-native
cover A couple of fixes for oe-run-native
The following changes since commit 26e04b23ba1b6942aa7c7df478d41dfe7b73e6e0:
oeqa/selftest/wic: Split tests into two class groups (2018-07-15 16:36:09 +0100)
are available in the Git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/oe-run-native-fixes
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=paule/oe-run-native-fixes
Paul Eggleton (2):
oe-run-native: ensure arguments get quoted
oe-find-native-sysroot: drop message if pseudo is not found
scripts/oe-find-native-sysroot | 2 -- scripts/oe-run-native | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/2 oe-run-native: ensure arguments get quoted
If you pass quoted arguments to oe-run-native, they need to be passed as-is to the underlying tool. Putting quotes around $@ ensures each argument is quoted individually.
--- scripts/oe-run-native | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/oe-run-native +1 -1
@@ -60,7 +60,7 @@ tool_find=`/usr/bin/which $tool 2>/dev/null` if [ -n "$tool_find" ] ; then # add old path to allow usage of host tools - PATH=$PATH:$OLD_PATH $@ + PATH=$PATH:$OLD_PATH "$@" else echo "Error: Unable to find '$tool' in $PATH" echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?"
Signature · 1 line
2.17.1
PATCH 2/2 oe-find-native-sysroot: drop message if pseudo is not found
In reply to Paul Eggletonpseudo won't always be in the native sysroot for a recipe, so we shouldn't be complaining if it isn't there.
--- scripts/oe-find-native-sysroot | 2 -- 1 file changed, 2 deletions(-)
scripts/oe-find-native-sysroot +0 -2
@@ -110,6 +110,4 @@ pseudo="$OECORE_NATIVE_SYSROOT/usr/bin/pseudo" if [ -e "$pseudo" ]; then echo "PSEUDO=$pseudo" PSEUDO="$pseudo" -else - echo "PSEUDO $pseudo is not found." fi
Signature · 1 line
2.17.1