weston-init: De-couple framebuffer console from Weston for systemd startup
PATCH v3 3/3 weston-init: Fix weston-start to allow weston args without openvt args
In reply to Tom HochsteinThe 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
@@ -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
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.
Signed-off-by Tom Hochstein <[email protected]>
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
Re: [PATCH v3 2/3] weston-init: Fix weston-start to handle 0 or 1 args
In reply to Tom HochsteinQuoted 3 lines · Tom Hochstein
The parser incorrectly treated anything less than 2 args as an error.
Signed-off-by Tom Hochstein <[email protected]>
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
Re: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args
In reply to Tom HochsteinQuoted 4 lines · Tom Hochstein
The parser didn't properly handle commands of the form weston-start -- <weston-options>.
Signed-off-by Tom Hochstein <[email protected]>
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
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
@@ -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
@@ -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
Re: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args
In reply to Otavio SalvadorI 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>.
Signed-off-by Tom Hochstein <[email protected]>Acked-by Otavio Salvador <[email protected]>--
Otavio SalvadorO.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
PATCH v3 2/3 weston-init: Fix weston-start to handle 0 or 1 args
In reply to Tom HochsteinThe 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
@@ -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
PATCH v3 2/3 weston-init: Fix weston-start to handle 0 or 1 args
In reply to Tom HochsteinThe 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
@@ -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
Tom Hochstein
Acked-by Otavio SalvadorRe: [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args
In reply to Burton, RossRe-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