aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-graphics/mesa/mesa-wayland.inc
blob: eee686309a95cf0ad66896c3d19fe649d9eed9f4 (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
# FIXME: can not override PACKAGECONFIG.
PACKAGECONFIG[gles] = "-Dgles1=true -Dgles2=false"
PACKAGECONFIG[egl] = "-Degl=true"

# Disable the gbm modules of mesa
PACKAGECONFIG_remove = "gbm"

# Remove the gbm and egl packages. These are provided in other recipes.
PACKAGES_remove = " \
    libgbm-dev libgbm \
    libegl-mesa-dev libegl-mesa \
    libegl-dev libegl \
    libgles2-mesa libgles2-mesa-dev \
    libwayland-egl libwayland-egl-dev \
"

do_install_append() {
    # Remove libegl-mesa modules and headers
    rm -f ${D}/${libdir}/libEGL.la
    rm -f ${D}/${libdir}/libEGL.so*
    rm -f ${D}/${libdir}/pkgconfig/egl.pc
    rm -rf ${D}/${includedir}/EGL
    rm -rf ${D}/${includedir}/KHR
}