From e0cb14ae3f8eac1fb4c9c48b90e60115a0468985 Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Fri, 25 Sep 2015 20:24:42 +0900 Subject: Add systemd configuration to launch psplash Change-Id: I11c704890440b6412698c5067effcafb8b4849e8 Signed-off-by: Tadao Tanikawa --- meta-agl/recipes-core/psplash/psplash_git.bbappend | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'meta-agl/recipes-core/psplash/psplash_git.bbappend') diff --git a/meta-agl/recipes-core/psplash/psplash_git.bbappend b/meta-agl/recipes-core/psplash/psplash_git.bbappend index 193ecfb27..3b4f85102 100644 --- a/meta-agl/recipes-core/psplash/psplash_git.bbappend +++ b/meta-agl/recipes-core/psplash/psplash_git.bbappend @@ -1,10 +1,25 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:" -SRC_URI += "file://psplash-colors.h" +SRC_URI += "file://psplash-colors.h \ + file://psplash-start.service \ + file://psplash-quit.service \ + " SPLASH_IMAGES="file://psplash-poky-img.h;outsuffix=default" +inherit systemd + +SYSTEMD_PACKAGES = "${@base_contains('DISTRO_FEATURES', 'systemd', '${PN}', '', d)}" +SYSTEMD_SERVICE_${PN} = "${@base_contains('DISTRO_FEATURES', 'systemd', 'psplash-start.service psplash-quit.service', '', d)}" + do_configure_append () { cd ${S} cp ../psplash-colors.h ./ } + +do_install_append () { + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 644 ${WORKDIR}/*.service ${D}/${systemd_unitdir}/system + fi +} -- cgit 1.2.3-korg