aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa_%.bbappend
blob: 4904a0b581ceb1550f5486771d3196c459b3a996 (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
32
33
34
35
36
37
PACKAGECONFIG_remove_mx5 = "egl gles"
PROVIDES_remove_mx5 = "virtual/libgles1 virtual/libgles2 virtual/egl"

PACKAGECONFIG_remove_mx6q  = "egl gles"
PACKAGECONFIG_remove_mx6dl = "egl gles"
PACKAGECONFIG_remove_mx6sx = "egl gles"
PACKAGECONFIG_remove_mx6sl = "egl gles"

# i.MX6SL uses mesa software rendering

PROVIDES_remove_mx6q = "virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgl"
PROVIDES_remove_mx6dl = "virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgl"
PROVIDES_remove_mx6sx = "virtual/libgles1 virtual/libgles2 virtual/egl virtual/libgl"
PROVIDES_remove_mx6sl = "virtual/libgles1 virtual/libgles2 virtual/egl"

USE_VIV_LIBGL = "no"
USE_VIV_LIBGL_mx6q = "yes"
USE_VIV_LIBGL_mx6dl = "yes"
USE_VIV_LIBGL_mx6sx = "yes"

# FIXME: mesa should support 'x11-no-tls' option
python () {
    overrides = d.getVar("OVERRIDES", True).split(":")
    if "mx6" not in overrides:
        return

    extra_oeconf = d.getVar("EXTRA_OECONF", True)
    extra_oeconf = extra_oeconf.replace("--enable-glx-tls", "--enable-glx")
    d.setVar("EXTRA_OECONF", extra_oeconf)
}

# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
do_install_append_mx6 () {
    if [ "${USE_VIV_LIBGL}" = "yes" ]; then
        rm -f ${D}${libdir}/libGL.*
    fi
}