]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa-etnaviv-env: Add support to sysvinit
authorVinicius Aquino <voa.aquino@gmail.com>
Mon, 19 Apr 2021 18:09:15 +0000 (15:09 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 20 Apr 2021 15:10:12 +0000 (12:10 -0300)
Signed-off-by: Vinicius Aquino <voa.aquino@gmail.com>
recipes-graphics/mesa/mesa-etnaviv-env/mesa-etnaviv.sh [new file with mode: 0644]
recipes-graphics/mesa/mesa-etnaviv-env_0.1.bb

diff --git a/recipes-graphics/mesa/mesa-etnaviv-env/mesa-etnaviv.sh b/recipes-graphics/mesa/mesa-etnaviv-env/mesa-etnaviv.sh
new file mode 100644 (file)
index 0000000..8854a87
--- /dev/null
@@ -0,0 +1,2 @@
+export MESA_GL_VERSION_OVERRIDE=2.1
+export ETNA_MESA_DEBUG=nir
index 13cdf02d70733bb3548d438911635c78f5a27826..2a32c448f436d5d5b7422b0c741c660528dfd7a4 100644 (file)
@@ -4,12 +4,15 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SRC_URI = "file://mesa-etnaviv.conf"
+SRC_URI = "\
+    file://mesa-etnaviv.conf \
+    file://mesa-etnaviv.sh \
+"
 
 do_configure[noexec] = "1"
 do_compile[noexec] = "1"
 
-do_install() {
+do_install_use-mainline-bsp() {
     # MESA global envirronment variables
 
     # systemd
@@ -18,7 +21,11 @@ do_install() {
             ${D}${sysconfdir}/systemd/system.conf.d/mesa-etnaviv.conf
     fi
 
-    # sysvinit - TODO
+    # 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"