aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
blob: 131b36e23c2546ad5ff0cf0d81d095e8ce4e5eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"

inherit systemd

SYSTEMD_SERVICE = "X.service"

SRC_URI_append = " file://X.service \
                 "
do_install_append() {
    if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
        install -d ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/X.service ${D}${systemd_unitdir}/system
    fi
}