[oe-commits] =?UTF-8?Q?An=C3=ADbal=20Lim=C3=B3n=20?=: runqemu-internal: Fixes unary operator expected in new TCPSERIAL_PORTNUM
git at git.openembedded.org
git at git.openembedded.org
Sun Aug 30 11:48:22 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 7bbe24f19e6005eccefd404b3a6d5d9443dd5b36
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7bbe24f19e6005eccefd404b3a6d5d9443dd5b36
Author: Aníbal Limón <anibal.limon at linux.intel.com>
Date: Wed Aug 26 09:48:18 2015 -0500
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 == "" -> == ""
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/runqemu-internal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index baf53f3..a691a80 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -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
More information about the Openembedded-commits
mailing list