Enable psplash in guest container using drm-lease
[AGL/meta-agl-demo.git] / recipes-core / psplash / psplash_agl-container-guest-demo.inc
diff --git a/recipes-core/psplash/psplash_agl-container-guest-demo.inc b/recipes-core/psplash/psplash_agl-container-guest-demo.inc
new file mode 100644 (file)
index 0000000..9c7fb37
--- /dev/null
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/agl-container-guest:"
+SRC_URI:append = " file://psplash.env"
+
+PACKAGECONFIG:append = " drm drm-lease"
+
+PSPLASH_DRM_LEASE_ARGS = "--drm-lease lease"
+
+do_install:append () {
+       sed -i -e '/^\[Service\]/a EnvironmentFile=/etc/default/psplash' ${D}${systemd_system_unitdir}/psplash-start.service
+    install -Dm644 ${WORKDIR}/psplash.env ${D}${sysconfdir}/default/psplash
+}