From: Matt Porter Date: Wed, 2 Aug 2017 21:53:23 +0000 (+0300) Subject: meta-agl-bsp: meta-ti: add pvr systemd service X-Git-Tag: 4.0.1~13 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F10499%2F2;p=AGL%2Fmeta-agl.git meta-agl-bsp: meta-ti: add pvr systemd service dra7xx-evm currently does not initialize graphics correctly because the PVR SGX services are not loaded at the correct time. Add a systemd service which executes the script from the TI DDK before psplash and weston are started. This fixes dra7xx-evm so that HomeScreen comes up on boot. Bug-AGL: SPEC-798 Change-Id: I0649902ac6066062527f345bea5e36e929d19c01 Signed-off-by: Matt Porter Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10499 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account Reviewed-by: Thomas Rini Reviewed-by: Jan-Simon Moeller --- diff --git a/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um/pvr.service b/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um/pvr.service new file mode 100644 index 000000000..1acb94fd4 --- /dev/null +++ b/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um/pvr.service @@ -0,0 +1,19 @@ +[Unit] +Description=PVR service +SourcePath=/etc/ti-sgx/rc.pvr +DefaultDependencies=no +Before=psplash-start.service + +[Service] +Type=forking +Restart=no +TimeoutSec=5min +IgnoreSIGPIPE=no +KillMode=process +GuessMainPID=no +RemainAfterExit=yes +ExecStart=/etc/ti-sgx/rc.pvr start +ExecStop=/etc/ti-sgx/rc.pvr stop + +[Install] +WantedBy=sysinit.target diff --git a/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um_%.bbappend b/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um_%.bbappend new file mode 100644 index 000000000..21142df59 --- /dev/null +++ b/meta-agl-bsp/meta-ti/recipes-graphics/libgles/ti-sgx-ddk-um_%.bbappend @@ -0,0 +1,18 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" +FILES_${PN} += "/etc/ti-sgx/" + +SRC_URI_append = "\ + file://pvr.service \ +" + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "pvr.service" + +do_install_append() { + install -d ${D}${systemd_system_unitdir} + install -m 0755 ${WORKDIR}/pvr.service ${D}${systemd_system_unitdir} + install -d ${D}/etc/ti-sgx + install -m 0755 ${D}/etc/init.d/rc.pvr ${D}/etc/ti-sgx +}