X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl%2Frecipes-core%2Fpsplash%2Fpsplash_git.bbappend;h=bdc196b6f0a4d9f16ed7cc65a81ea12fa19c9813;hb=95fbe983a8d658764eb31ddccc179ff309022e84;hp=193ecfb2762bffaf295aaceaf782b2273e5f9428;hpb=72201670bd566441ffc0a15270ce2290438632b9;p=AGL%2Fmeta-agl.git diff --git a/meta-agl/recipes-core/psplash/psplash_git.bbappend b/meta-agl/recipes-core/psplash/psplash_git.bbappend index 193ecfb27..bdc196b6f 100644 --- a/meta-agl/recipes-core/psplash/psplash_git.bbappend +++ b/meta-agl/recipes-core/psplash/psplash_git.bbappend @@ -1,10 +1,27 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -SRC_URI += "file://psplash-colors.h" +SRC_URI += "file://psplash-colors.h \ + file://psplash-start.service \ + file://psplash-quit.service \ + file://psplash-anim \ + " SPLASH_IMAGES="file://psplash-poky-img.h;outsuffix=default" +inherit systemd + +SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${PN}', '', d)}" +SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'psplash-start.service psplash-quit.service', '', d)}" + do_configure_append () { cd ${S} cp ../psplash-colors.h ./ } + +do_install_append () { + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 644 ${WORKDIR}/*.service ${D}/${systemd_unitdir}/system + fi + install -m 755 ${WORKDIR}/psplash-anim ${D}/${bindir} +}