[oe-commits] Scott Garman : runqemu-internal: don't append an empty element to PATH
git at git.openembedded.org
git at git.openembedded.org
Fri Sep 28 10:15:25 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 1f7f590369eaa76dc970c9cffd1f0db53ce08c00
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1f7f590369eaa76dc970c9cffd1f0db53ce08c00
Author: Scott Garman <scott.a.garman at intel.com>
Date: Wed Sep 26 11:02:27 2012 -0700
runqemu-internal: don't append an empty element to PATH
Bitbake fails to run when an empty element exists in $PATH. Avoid
creating this situation when $CROSSPATH is not set.
This fixes bug [YOCTO #3101]
Signed-off-by: Scott Garman <scott.a.garman at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
scripts/runqemu-internal | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 6b8bb65..0f07bad 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -472,7 +472,11 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
return
fi
-PATH=$CROSSPATH:$OECORE_NATIVE_SYSROOT/usr/bin:$PATH
+if [ "x$CROSSPATH" = "x" ]; then
+ PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$PATH
+else
+ PATH=$CROSSPATH:$OECORE_NATIVE_SYSROOT/usr/bin:$PATH
+fi
QEMUBIN=`which $QEMU 2> /dev/null`
if [ ! -x "$QEMUBIN" ]; then
More information about the Openembedded-commits
mailing list