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>
This commit is contained in:
parent
f31d114b48
commit
f786991c3a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue