diff options
author | Scott Garman <scott.a.garman@intel.com> | 2012-09-26 11:02:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-28 11:07:39 +0100 |
commit | f786991c3ab3e60aa534b28c93e6860fa9362556 (patch) | |
tree | 5d355174a988fde58a7293de6ba9b173cc772b29 /scripts/runqemu-internal | |
parent | f31d114b48564705cbfbbcd433ccd085c82f72b5 (diff) | |
download | poky-f786991c3ab3e60aa534b28c93e6860fa9362556.tar.gz |
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]
(From OE-Core rev: 1f7f590369eaa76dc970c9cffd1f0db53ce08c00)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 6 |
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 | |||
472 | return | 472 | return |
473 | fi | 473 | fi |
474 | 474 | ||
475 | PATH=$CROSSPATH:$OECORE_NATIVE_SYSROOT/usr/bin:$PATH | 475 | if [ "x$CROSSPATH" = "x" ]; then |
476 | PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$PATH | ||
477 | else | ||
478 | PATH=$CROSSPATH:$OECORE_NATIVE_SYSROOT/usr/bin:$PATH | ||
479 | fi | ||
476 | 480 | ||
477 | QEMUBIN=`which $QEMU 2> /dev/null` | 481 | QEMUBIN=`which $QEMU 2> /dev/null` |
478 | if [ ! -x "$QEMUBIN" ]; then | 482 | if [ ! -x "$QEMUBIN" ]; then |