summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston-init
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2021-09-15 10:50:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-11 18:41:38 +0100
commit28e89f8adeb27a9bf732a79225c640ddd13f8675 (patch)
tree42bff9169ce0d481771ef3623c5de2ec8fd22176 /meta/recipes-graphics/wayland/weston-init
parentb0c788d7bebfb66458179d87d5d96e4192e2b18d (diff)
downloadpoky-28e89f8adeb27a9bf732a79225c640ddd13f8675.tar.gz
weston: wrapper for weston modules argument
Due to custom option parser implementation weston accepts only one argument of a given type. As the result if multiple modules add multiple --modules agruments only last will be used. This fix introduces wrapper around modules in terms of weston-init to prepare proper modules argument for weston and adds systemd-notify module into weston-init module to support Type=notify in systemd service file. (From OE-Core rev: c8aa0222ce2be647911114aaebcbb0d55d7caf87) Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init')
-rwxr-xr-xmeta/recipes-graphics/wayland/weston-init/weston-start11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start
index 0b93dc964a..0f1bc4c29d 100755
--- a/meta/recipes-graphics/wayland/weston-init/weston-start
+++ b/meta/recipes-graphics/wayland/weston-init/weston-start
@@ -21,6 +21,14 @@ add_weston_argument() {
21# Add openvt extra argument 21# Add openvt extra argument
22add_openvt_argument() { 22add_openvt_argument() {
23 openvt_args="$openvt_args $1" 23 openvt_args="$openvt_args $1"
24
25}
26## Add module to --modules argument
27add_weston_module() {
28 if [[ "x${weston_modules}" == "x" ]]; then
29 weston_modules="--modules "
30 fi;
31 weston_modules+="${1},"
24} 32}
25 33
26if [ -n "$WAYLAND_DISPLAY" ]; then 34if [ -n "$WAYLAND_DISPLAY" ]; then
@@ -68,6 +76,9 @@ if [ -d "$modules_dir" ]; then
68 76
69 # process module 77 # process module
70 . $m 78 . $m
79 if [[ x"{$weston_modules}" != "x" ]]; then
80 add_weston_argument "${weston_modules}"
81 fi;
71 done 82 done
72fi 83fi
73 84