summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb
blob: 2a32c448f436d5d5b7422b0c741c660528dfd7a4 (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"