summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-06-13 01:20:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-14 12:44:35 +0100
commitbcf38754bac6190c2620df1b230d836bb474b871 (patch)
tree4fa4f0985e788864686c844f8fdadb2d55b6e9f5 /meta/recipes-graphics/mesa
parent6d2c16d12511de29942ad90d5a4ea0f920208f84 (diff)
downloadpoky-bcf38754bac6190c2620df1b230d836bb474b871.tar.gz
mesa: introduce gallium PACKAGECONFIG
(From OE-Core rev: 26276a215d7e09856d5e418edacab63197508050) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index a210415eb7..6207bb6ff1 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -37,7 +37,6 @@ DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915"
37DRIDRIVERS_append_x86-64 = ",radeon,r200,nouveau,i965,i915" 37DRIDRIVERS_append_x86-64 = ",radeon,r200,nouveau,i965,i915"
38PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm udev" 38PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm udev"
39 39
40EXTRA_OECONF += "--disable-gallium --without-gallium-drivers"
41EXTRA_OECONF += "--enable-gbm" 40EXTRA_OECONF += "--enable-gbm"
42 41
43PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" 42PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"
@@ -47,6 +46,9 @@ EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'x11', ',x11', '', d)}"
47EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}" 46EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}"
48PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl" 47PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl"
49 48
49GALLIUMDRIVERS = "swrast"
50PACKAGECONFIG[gallium] = "--enable-gallium --with-gallium-drivers=${GALLIUMDRIVERS}, --disable-gallium --without-gallium-drivers"
51
50# Multiple virtual/gl providers being built breaks staging 52# Multiple virtual/gl providers being built breaks staging
51EXCLUDE_FROM_WORLD = "1" 53EXCLUDE_FROM_WORLD = "1"
52 54
@@ -63,6 +65,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \
63 libgles2-mesa libgles2-mesa-dev \ 65 libgles2-mesa libgles2-mesa-dev \
64 libgles3-mesa libgles3-mesa-dev \ 66 libgles3-mesa libgles3-mesa-dev \
65 libwayland-egl libwayland-egl-dev \ 67 libwayland-egl libwayland-egl-dev \
68 libegl-gallium libgbm-gallium \
66 " 69 "
67 70
68do_install_append () { 71do_install_append () {
@@ -108,6 +111,9 @@ python populate_packages_prepend() {
108 d.setVar("RPROVIDES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-")) 111 d.setVar("RPROVIDES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
109 d.setVar("RCONFLICTS_%s" % pkg, pkg.replace("mesa-", "mesa-dri-")) 112 d.setVar("RCONFLICTS_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
110 d.setVar("RREPLACES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-")) 113 d.setVar("RREPLACES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
114
115 pipe_drivers_root = os.path.join(d.getVar('libdir', True), "gallium-pipe")
116 do_split_packages(d, pipe_drivers_root, '^pipe_(.*)\.so$', 'mesa-driver-pipe-%s', 'Mesa %s pipe driver', extra_depends='')
111} 117}
112 118
113PACKAGES_DYNAMIC += "^mesa-driver-.*" 119PACKAGES_DYNAMIC += "^mesa-driver-.*"
@@ -123,6 +129,8 @@ FILES_libgl-mesa = "${libdir}/libGL.so.*"
123FILES_libglapi = "${libdir}/libglapi.so.*" 129FILES_libglapi = "${libdir}/libglapi.so.*"
124FILES_libosmesa = "${libdir}/libOSMesa.so.*" 130FILES_libosmesa = "${libdir}/libOSMesa.so.*"
125FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*" 131FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*"
132FILES_libegl-gallium = "${libdir}/egl/egl_gallium.so*"
133FILES_libgbm-gallium = "${libdir}/gbm/gbm_gallium_drm.so*"
126 134
127FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" 135FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc"
128FILES_libdricore-dev = "${libdir}/libdricore*.*" 136FILES_libdricore-dev = "${libdir}/libdricore*.*"
@@ -136,4 +144,4 @@ FILES_libgles3-mesa-dev = "${includedir}/GLES3"
136FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h ${libdir}/pkgconfig/osmesa.pc" 144FILES_libosmesa-dev = "${libdir}/libOSMesa.* ${includedir}/osmesa.h ${libdir}/pkgconfig/osmesa.pc"
137FILES_libwayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayland-egl.*" 145FILES_libwayland-egl-dev = "${libdir}/pkgconfig/wayland-egl.pc ${libdir}/libwayland-egl.*"
138 146
139FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/*" 147FILES_${PN}-dbg += "${libdir}/dri/.debug/* ${libdir}/egl/.debug/* ${libdir}/gbm/.debug/* ${libdir}/gallium-pipe/.debug"