diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-08-26 09:48:18 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-30 12:36:06 +0100 |
commit | 4292352f006b4a0f812360def04b3bcd858b9530 (patch) | |
tree | b0616a5f78ef4bc721d81652d21c31ad1cd93fa4 /scripts/runqemu-internal | |
parent | 38bc1647003754339584b15218377f254e5f8b0d (diff) | |
download | poky-4292352f006b4a0f812360def04b3bcd858b9530.tar.gz |
runqemu-internal: Fixes unary operator expected in new TCPSERIAL_PORTNUM
If $TCPSERIAL_PORTNUM is empty string causes an error because
expands the expresion to,
$TCPSERIAL_PORTNUM == "" -> == ""
(From OE-Core rev: 7bbe24f19e6005eccefd404b3a6d5d9443dd5b36)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index baf53f3e8b..a691a80a46 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal | |||
@@ -620,7 +620,7 @@ if [ "x$QEMUOPTIONS" = "x" ]; then | |||
620 | return 1 | 620 | return 1 |
621 | fi | 621 | fi |
622 | 622 | ||
623 | if [ $TCPSERIAL_PORTNUM != "" ]; then | 623 | if [ "$TCPSERIAL_PORTNUM" != "" ]; then |
624 | if [ "$MACHINE" = "qemuarm64" ]; then | 624 | if [ "$MACHINE" = "qemuarm64" ]; then |
625 | SCRIPT_QEMU_EXTRA_OPT="$SCRIPT_QEMU_EXTRA_OPT -device virtio-serial-device -chardev socket,id=virtcon,port=$TCPSERIAL_PORTNUM,host=127.0.0.1 -device virtconsole,chardev=virtcon" | 625 | SCRIPT_QEMU_EXTRA_OPT="$SCRIPT_QEMU_EXTRA_OPT -device virtio-serial-device -chardev socket,id=virtcon,port=$TCPSERIAL_PORTNUM,host=127.0.0.1 -device virtconsole,chardev=virtcon" |
626 | else | 626 | else |