Run agl-compositor in system scope for QEMU+KVM demo image 32/28432/2
authorScott Murray <scott.murray@konsulko.com>
Thu, 19 Jan 2023 01:47:11 +0000 (20:47 -0500)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Sun, 29 Jan 2023 14:29:37 +0000 (14:29 +0000)
commit20fcd4159ce4602329278e1c3af44d5ed44417bb
tree8b380bce25fdf9c4357b35e18153ab6250e727cd
parent0300d09b49aabb5878a08522dae0ef0329f34d0a
Run agl-compositor in system scope for QEMU+KVM demo image

To allow usefully depending on the native-shell-client "homescreen"
application from the systemd units running QEMU, tweak things to
drop the use of agl-session from the agl-kvm-demo-platform host
image.  The motivation for this is to have the VM guest start up
ordering work as expected, avoiding unnecessary delays from race
failures on boot.

Changes:
- Rework agl-kvm template to use conf/include/agl-kvm.inc include
  file to match other featurs and simplify development.
- Add include files for the host ("default" in BitBake) and guest
  (so agl-kvm-guest) multiconfigs to allow disabling the agl-demo
  feature in the host build, which disables agl-session.
- Update native-shell-client systemd unit to run at system scope
  and depend upon agl-compositor directly.
- Update agl-qemu-runner systemd template unit to depend directly
  on native-shell-client.

Note that a consequence of these changes is that building images
other than agl-kvm-demo-platform when the "agl-kvm" feature is used
will likely not yield the desired results.  Future work will
investigate avoiding this problem, or forcing explicit compatibility
errors to avoid user confusion.

Bug-AGL: SPEC-4618

Change-Id: I295caf2969c5f4179c93f1b57afa703f1a866457
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
(cherry picked from commit 94ee287730b16820003aece648e790923a9a5b79)
conf/include/agl-kvm.inc [new file with mode: 0644]
conf/include/mc-conf-agl-kvm-guest.inc [new file with mode: 0644]
conf/include/mc-conf-default.inc [new file with mode: 0644]
recipes-demo/native-shell-client/files/native-shell-client.service
recipes-demo/native-shell-client/native-shell-client_agldemo.inc
recipes-extended/agl-qemu-runner/files/agl-qemu-runner.sh
recipes-extended/agl-qemu-runner/files/agl-qemu-runner@.service
templates/feature/agl-kvm/50_local.conf.inc
templates/feature/agl-kvm/README_feature_agl-kvm.md