summaryrefslogtreecommitdiff
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2012-09-26 11:02:27 -0700
committerSaul Wold <sgw@linux.intel.com>2012-09-28 01:14:01 -0700
commit1f7f590369eaa76dc970c9cffd1f0db53ce08c00 (patch)
tree5ad05782d9e21173322cff362f8364c65e3928c7 /scripts/runqemu-internal
parent435ffeefe4a1df53335fd397ff404bed7deae2df (diff)
downloadopenembedded-core-1f7f590369eaa76dc970c9cffd1f0db53ce08c00.tar.gz
openembedded-core-1f7f590369eaa76dc970c9cffd1f0db53ce08c00.tar.bz2
openembedded-core-1f7f590369eaa76dc970c9cffd1f0db53ce08c00.zip
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@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 6b8bb6520e..0f07bad970 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