diff options
-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 |