<div dir="ltr"><br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 11:37 PM, Saul Wold <span dir="ltr">&lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 08/08/2014 02:09 AM, Sujith H wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com" target="_blank">Sujith_Haridasan@mentor.com</a>&gt;<br>
<br>
If the DISTRO_FEATURES has systemd, then its better<br>
to have corresponding service files associated with<br>
the psplash. This change will help to do the same.<br>
<br>
</blockquote></div>
Can you propose a patch to the psplash upstream which is part of the Yocto Project (send the patch to <a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a>) and then we can do a psplash upgrade to include these files directly?<br>

</blockquote><div><br></div><div>Ok then I will submit the same patch to Yocto Project.<br><br></div><div>Thanks,<br>Sujith H <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Thanks<br>
        Sau!<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Muzaffar Mahmood &lt;<a href="mailto:muzaffar_mahmood@mentor.com" target="_blank">muzaffar_mahmood@mentor.com</a>&gt;<br>
Signed-off-by: Sujith H &lt;<a href="mailto:Sujith_Haridasan@mentor.com" target="_blank">Sujith_Haridasan@mentor.com</a>&gt;<br>
---<br>
  meta/recipes-core/psplash/<u></u>files/psplash-quit.service  | 11 +++++++++++<br>
  meta/recipes-core/psplash/<u></u>files/psplash-start.service | 11 +++++++++++<br>
  meta/recipes-core/psplash/<a href="http://psplash_git.bb" target="_blank">pspl<u></u>ash_git.bb</a>              | 12 +++++++++++-<br>
  3 files changed, 33 insertions(+), 1 deletion(-)<br>
  create mode 100644 meta/recipes-core/psplash/<u></u>files/psplash-quit.service<br>
  create mode 100644 meta/recipes-core/psplash/<u></u>files/psplash-start.service<br>
<br>
diff --git a/meta/recipes-core/psplash/<u></u>files/psplash-quit.service b/meta/recipes-core/psplash/<u></u>files/psplash-quit.service<br>
new file mode 100644<br>
index 0000000..14bd499<br>
--- /dev/null<br>
+++ b/meta/recipes-core/psplash/<u></u>files/psplash-quit.service<br>
@@ -0,0 +1,11 @@<br>
+[Unit]<br>
+Description=Terminate Psplash Boot Screen<br>
+After=psplash-start.service<br>
+<br>
+[Service]<br>
+Type=oneshot<br>
+ExecStart=/usr/bin/psplash-<u></u>write QUIT<br>
+TimeoutSec=20<br>
+<br>
+[Install]<br>
+WantedBy=multi-user.target<br>
diff --git a/meta/recipes-core/psplash/<u></u>files/psplash-start.service b/meta/recipes-core/psplash/<u></u>files/psplash-start.service<br>
new file mode 100644<br>
index 0000000..502b150<br>
--- /dev/null<br>
+++ b/meta/recipes-core/psplash/<u></u>files/psplash-start.service<br>
@@ -0,0 +1,11 @@<br>
+[Unit]<br>
+Description=Starts Psplash Boot screen<br>
+Wants=systemd-vconsole-setup.<u></u>service<br>
+After=systemd-vconsole-setup.<u></u>service systemd-udev-trigger.service systemd-udevd.service<br>
+DefaultDependencies=no<br>
+<br>
+[Service]<br>
+ExecStart=/usr/bin/psplash<br>
+<br>
+[Install]<br>
+WantedBy=sysinit.target<br>
diff --git a/meta/recipes-core/psplash/<a href="http://psplash_git.bb" target="_blank">ps<u></u>plash_git.bb</a> b/meta/recipes-core/psplash/<a href="http://psplash_git.bb" target="_blank">ps<u></u>plash_git.bb</a><br>
index 628ced4..16fa0ae 100644<br>
--- a/meta/recipes-core/psplash/<a href="http://psplash_git.bb" target="_blank">ps<u></u>plash_git.bb</a><br>
+++ b/meta/recipes-core/psplash/<a href="http://psplash_git.bb" target="_blank">ps<u></u>plash_git.bb</a><br>
@@ -11,6 +11,8 @@ PR = &quot;r15&quot;<br>
<br>
  SRC_URI = &quot;git://<a href="http://git.yoctoproject.org/$%7BBPN%7D" target="_blank">git.yoctoproject.org/${<u></u>BPN}</a> \<br>
             file://psplash-init \<br>
+           file://psplash-start.service \<br>
+           file://psplash-quit.service \<br>
             ${SPLASH_IMAGES}&quot;<br>
<br>
  SPLASH_IMAGES = &quot;file://psplash-poky-img.h;<u></u>outsuffix=default&quot;<br>
@@ -65,11 +67,14 @@ python __anonymous() {<br>
<br>
  S = &quot;${WORKDIR}/git&quot;<br>
<br>
-inherit autotools pkgconfig update-rc.d update-alternatives<br>
+inherit autotools pkgconfig update-rc.d update-alternatives systemd<br>
<br>
  ALTERNATIVE_PRIORITY = &quot;100&quot;<br>
  ALTERNATIVE_LINK_NAME[psplash] = &quot;${bindir}/psplash&quot;<br>
<br>
+SYSTEMD_PACKAGES = &quot;${@base_contains(&#39;DISTRO_<u></u>FEATURES&#39;,&#39;systemd&#39;,&#39;${PN}&#39;,&#39;&#39;<u></u>,d)}&quot;<br>
+SYSTEMD_SERVICE_${PN} = &quot;${@base_contains(&#39;DISTRO_<u></u>FEATURES&#39;,&#39;systemd&#39;,&#39;psplash-<u></u>start.service psplash-quit.service&#39;,&#39;&#39;,d)}&quot;<br>
+<br>
  python do_compile () {<br>
      import shutil<br>
<br>
@@ -103,6 +108,11 @@ do_install_append() {<br>
                install -m 0755 $i ${D}${bindir}/$i<br>
        done<br>
        rm -f ${D}${bindir}/psplash<br>
+<br>
+       if ${@base_contains(&#39;DISTRO_<u></u>FEATURES&#39;,&#39;systemd&#39;,&#39;true&#39;,&#39;<u></u>false&#39;,d)}; then<br>
+                install -d ${D}${systemd_unitdir}/system<br>
+                install -m 644 ${WORKDIR}/*.service ${D}/${systemd_unitdir}/system<br>
+        fi<br>
  }<br>
<br>
  FILES_${PN} += &quot;/mnt/.psplash&quot;<br>
<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>സുജിത് ഹരിദാസന്<br>Bangalore<br>&lt;Project&gt;Contributor to KDE project<br><a href="http://fci.wikia.com/wiki/Anti-DRM-Campaign" target="_blank">http://fci.wikia.com/wiki/Anti-DRM-Campaign</a><br>

&lt;Blog&gt; <a href="http://sujithh.info" target="_blank">http://sujithh.info</a><br>
</div></div></div>