summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
b096466)
Add a bbappend for native-shell-client to add a systemd unit that
runs in the agl-driver user session. This is required to actually
get it started if it is built into an image.
Bug-AGL: SPEC-4618
Change-Id: If6c1c015544ee6f126fb30ca67822a38a83df64c
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
--- /dev/null
+[Unit]
+Requires=agl-compositor.service
+After=agl-compositor.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/native-shell-client
+Restart=on-failure
+
+[Install]
+WantedBy=agl-session.target
--- /dev/null
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://native-shell-client.service"
+
+do_install:append() {
+ install -d ${D}${systemd_user_unitdir}/agl-session.target.wants
+ install -m0644 ${WORKDIR}/native-shell-client.service ${D}${systemd_user_unitdir}/native-shell-client.service
+ ln -s ../native-shell-client.service ${D}${systemd_user_unitdir}/agl-session.target.wants/native-shell-client.service
+}
+
+FILES:${PN} += " ${systemd_user_unitdir}"
+
+RCONFLICTS:${PN} = "homescreen"
--- /dev/null
+require ${@bb.utils.contains('AGL_FEATURES', 'agldemo', 'native-shell-client_agldemo.inc', '', d)}