meta-agl-core: Update weston/agl-compositor init 82/26782/3
authorScott Murray <scott.murray@konsulko.com>
Tue, 2 Nov 2021 23:29:39 +0000 (19:29 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 4 Nov 2021 14:24:24 +0000 (14:24 +0000)
commitb1b652ff976655d0c1fcb170fb3f6795e56cd947
treec0ef7baf2272a44d60d3cb74abc9b4c0c2be5274
parentd468ce3b3d602f7c8a88d67126a32900b76fd433
meta-agl-core: Update weston/agl-compositor init

Changes/rework to get weston and agl-compositor starting again:
- Since an upgrade to a newer Yocto release is in the near future,
  update weston-init and associated files to effectively backport
  the new weston startup behavior added in 3.3/Hardknott as our
  new base.  The changes mean weston or agl-compositor will by
  default start as a "weston" user that replaces the "display"
  user that had been added previously in AGL.  The goal is that
  any new work done on top of this base should hopefully work
  on 3.5/Kirkstone without further substantial rework.
- Add new agl-compositor-init recipe that replaces the previous
  weston-init bbappend in meta-agl-demo.  Having it as a separate
  recipe in core so weston or agl-compositor "just work" in simple
  test images seems like a better approach.
- As part of the above, drop the --log option to agl-compositor
  in its command-line to address SPEC-4112.
- Add SYSTEMD_DEFAULT_TARGET definition to agl-image-weston and
  in a new core-image-weston bbappend to result in agl-compositor
  and weston starting automatically in the corresponding images.
  This is required with the new weston-init behavior until we
  upgrade past 3.3/Hardknott, when "weston" in IMAGE_FEATURES
  can be used instead.

Bug-AGL: SPEC-4121, SPEC-4112

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia64894416846569abf8e744006ef26637279a895
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26782
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
12 files changed:
meta-agl-core/files/group
meta-agl-core/files/passwd
meta-agl-core/recipes-graphics/wayland/agl-compositor-init.bb [new file with mode: 0644]
meta-agl-core/recipes-graphics/wayland/agl-compositor-init/agl-compositor.conf.in [new file with mode: 0644]
meta-agl-core/recipes-graphics/wayland/agl-compositor_git.bb
meta-agl-core/recipes-graphics/wayland/weston-init/weston-autologin [new file with mode: 0644]
meta-agl-core/recipes-graphics/wayland/weston-init/weston.service [new file with mode: 0644]
meta-agl-core/recipes-graphics/wayland/weston-init/weston.socket [new file with mode: 0644]
meta-agl-core/recipes-graphics/wayland/weston-init_aglcore.inc
meta-agl-core/recipes-platform/images/agl-image-weston.inc
meta-agl-core/recipes-platform/images/core-image-weston.bbappend [new file with mode: 0644]
meta-agl-core/recipes-platform/images/core-image-weston_aglcore.inc [new file with mode: 0644]