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>
This commit is contained in:
parent
38bc164700
commit
4292352f00
|
@ -620,7 +620,7 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
|
|||
return 1
|
||||
fi
|
||||
|
||||
if [ $TCPSERIAL_PORTNUM != "" ]; then
|
||||
if [ "$TCPSERIAL_PORTNUM" != "" ]; then
|
||||
if [ "$MACHINE" = "qemuarm64" ]; then
|
||||
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"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue