From f786991c3ab3e60aa534b28c93e6860fa9362556 Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Wed, 26 Sep 2012 11:02:27 -0700 Subject: 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- scripts/runqemu-internal | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3-54-g00ecf