summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb
blob: 87d05365ce61cd1646e38f6e9ab178a92a56f857 (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
26
27
28
29
30
31
SUMMARY = "Mesa environment variables for etnaviv on xserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRC_URI = "\
    file://mesa-etnaviv.conf \
    file://mesa-etnaviv.sh \
"

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

do_install:use-mainline-bsp() {
    # MESA global envirronment variables

    # systemd
    if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
        install -D -m 644 ${WORKDIR}/mesa-etnaviv.conf \
            ${D}${sysconfdir}/systemd/system.conf.d/mesa-etnaviv.conf
    fi

    # sysvinit
    if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
        install -D -m 644 ${WORKDIR}/mesa-etnaviv.sh \
            ${D}${sysconfdir}/profile.d/mesa-etnaviv.sh
    fi
}

ALLOW_EMPTY:${PN} = "1"