Skip to contentSkip to conversation

weston-init: De-couple framebuffer console from Weston for systemd startup

PATCH In review Tom Hochstein 3 participants 9 messages Jul 18, 2016

lore
Share & tools
lore
#5 lore raw

PATCH v3 3/3 weston-init: Fix weston-start to allow weston args without openvt args

In reply to Tom Hochstein

The parser didn't properly handle commands of the form weston-start -- <weston-options>.

---
 meta/recipes-graphics/wayland/weston-init/weston-start | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta/recipes-graphics/wayland/weston-init/weston-start +2 -3
index cd64216..e72fbaa 100755
@@ -35,13 +35,12 @@ fi
 
 openvt_args="-s"
 while [ -n "$1" ]; do
-	openvt_args="$openvt_args $1"
-	shift
-
 	if [ "$1" = "--" ]; then
 		shift
 		break
 	fi
+	openvt_args="$openvt_args $1"
+	shift
 done
 
 weston_args=$*
Signature · 1 line
1.9.1
Acked-by on v3 1/3
#3 lore raw
In reply to Tom Hochstein
Quoted 5 lines · Tom Hochstein

The framebuffer console was using the same I/O as Weston. We fix this by having openvt switch to the new VT when starting weston-launch, same as is already done for the sysvinit case.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
Acked-by on v3 2/3
#2 lore raw

Re: [PATCH v3 2/3] weston-init: Fix weston-start to handle 0 or 1 args

In reply to Tom Hochstein
Quoted 3 lines · Tom Hochstein

The parser incorrectly treated anything less than 2 args as an error.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
Acked-by on v3 3/3
#6 lore raw

Re: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args

In reply to Tom Hochstein
Quoted 4 lines · Tom Hochstein

The parser didn't properly handle commands of the form weston-start -- <weston-options>.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#0 lore raw

PATCH v3 1/3 weston-init: De-couple framebuffer console from Weston for systemd startup

The framebuffer console was using the same I/O as Weston. We fix this by having openvt switch to the new VT when starting weston-launch, same as is already done for the sysvinit case.

---
 meta/recipes-graphics/wayland/weston-init/init         | 2 +-
 meta/recipes-graphics/wayland/weston-init/weston-start | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-graphics/wayland/weston-init/init +1 -1
index 5c925f4..d3e87c6 100644
@@ -31,7 +31,7 @@ case "$1" in
   start)
         . /etc/profile
 
-        weston-start -s -- $OPTARGS
+        weston-start -- $OPTARGS
   ;;
 
   stop)
meta/recipes-graphics/wayland/weston-init/weston-start +2 -1
index 5b7604f..d7358ba 100755
@@ -1,5 +1,6 @@
 #!/bin/sh
 # Copyright (C) 2016 O.S. Systems Software LTDA.
+# Copyright (C) 2016 Freescale Semiconductor
 
 export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 
@@ -37,7 +38,7 @@ else
 	launcher="weston-launch --"
 fi
 
-openvt_args=""
+openvt_args="-s"
 while [ -n "$1" ]; do
 	openvt_args="$openvt_args $1"
 	shift
Signature · 1 line
1.9.1
#7 lore raw

Re: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args

In reply to Otavio Salvador

I can only see 1/3 and 3/3, but no 2/3.

Quoted 21 lines · Otavio Salvador
Quoted 4 lines · Tom Hochstein

The parser didn't properly handle commands of the form weston-start -- <weston-options>.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw

PATCH v3 2/3 weston-init: Fix weston-start to handle 0 or 1 args

In reply to Tom Hochstein

The parser incorrectly treated anything less than 2 args as an error.

---
 meta/recipes-graphics/wayland/weston-init/weston-start | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/recipes-graphics/wayland/weston-init/weston-start +1 -6
index d7358ba..cd64216 100755
@@ -6,7 +6,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 
 usage() {
     cat <<EOF
-    $0 <openvt arguments> -- <weston options>
+    $0 [<openvt arguments>] [-- <weston options>]
 EOF
 }
 
@@ -23,11 +23,6 @@ add_openvt_argument() {
 	openvt_args="$openvt_args $1"
 }
 
-if test $# -lt 2; then
-	usage
-	exit 1
-fi
-
 if [ -n "$WAYLAND_DISPLAY" ]; then
 	echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
 	exit 1
Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 2/3 weston-init: Fix weston-start to handle 0 or 1 args

In reply to Tom Hochstein

The parser incorrectly treated anything less than 2 args as an error.

---
 meta/recipes-graphics/wayland/weston-init/weston-start | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
meta/recipes-graphics/wayland/weston-init/weston-start +1 -6
index d7358ba..cd64216 100755
@@ -6,7 +6,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 
 usage() {
     cat <<EOF
-    $0 <openvt arguments> -- <weston options>
+    $0 [<openvt arguments>] [-- <weston options>]
 EOF
 }
 
@@ -23,11 +23,6 @@ add_openvt_argument() {
 	openvt_args="$openvt_args $1"
 }
 
-if test $# -lt 2; then
-	usage
-	exit 1
-fi
-
 if [ -n "$WAYLAND_DISPLAY" ]; then
 	echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
 	exit 1
Signature · 1 line
1.9.1
author Acked-by Otavio Salvador
#8 lore raw

Re: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args

In reply to Burton, Ross

Re-sent.

From: Burton, Ross [mailto:[email protected]]
Sent: Monday, July 18, 2016 11:29 AM
To: Otavio Salvador <[email protected]>
Cc: Tom Hochstein <[email protected]>; Otavio Salvador <[email protected]>; Patches and discussions about the oe-core layer <[email protected]>
Subject: Re: [OE-core] [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args

I can only see 1/3 and 3/3, but no 2/3.

On 18 July 2016 at 16:13, Otavio Salvador <[email protected]<mailto:[email protected]>> wrote:

Quoted 4 lines · On Mon, Jul 18, 2016 at 11:43 AM, Tom Hochstein…

The parser didn't properly handle commands of the form weston-start -- <weston-options>.

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854<tel:%2B55%20%2853%29%209981-7854> Mobile: +1 (347) 903-9750<tel:%2B1%20%28347%29%20903-9750>
--
_______________________________________________
Openembedded-core mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-core