summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/wayland/weston-agl-driver-conf.bb
blob: 29f65ccc296c4b8b8c87c302cdadd516d94a571a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SUMMARY     = "Weston systemd configuration to run as agl-driver user"
LICENSE     = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://weston-agl-driver.conf"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

inherit systemd allarch features_check

REQUIRED_DISTRO_FEATURES = "wayland systemd"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
    # Install override drop-in
    install -d ${D}${systemd_system_unitdir}/weston.service.d
    install -m 0644 ${UNPACKDIR}/weston-agl-driver.conf ${D}${systemd_system_unitdir}/weston.service.d/
}

FILES:${PN} += "${systemd_system_unitdir}"

RDEPENDS:${PN} += "weston agl-users"