summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-graphics/mesa/mesa_9.1.6.bbappend34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa_9.1.6.bbappend b/recipes-graphics/mesa/mesa_9.1.6.bbappend
new file mode 100644
index 0000000..88e5eab
--- /dev/null
+++ b/recipes-graphics/mesa/mesa_9.1.6.bbappend
@@ -0,0 +1,34 @@
1PRINC := "${@int(PRINC) + 1}"
2
3#
4# FIXME
5# We may a way to disable EGL and GL ES2, these are provided by userland package
6#
7python __anonymous () {
8 import re
9
10 # Remove egl and gles2 configure options
11 extra_oeconf = d.getVar('EXTRA_OECONF', True).split()
12 take_out = ['--enable-egl', '--enable-gles2', '--enable-gles1']
13 put_in = ['--disable-egl', '--disable-gles2', '--disable-gles1']
14 pattern = re.compile("--with-egl-platforms")
15 new_extra_oeconf = []
16 for i in extra_oeconf:
17 if i not in take_out and not pattern.match(i):
18 new_extra_oeconf.append(i)
19 for i in put_in:
20 new_extra_oeconf.append(i)
21 d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf))
22
23 # Remove egl and gles2 from provides
24 provides = d.getVar('PROVIDES', True).split()
25 take_out = ['virtual/libgles2', 'virtual/egl', 'virtual/libgles1']
26 new_provides = []
27 for i in provides:
28 if i not in take_out:
29 new_provides.append(i)
30 d.setVar('PROVIDES', ' '.join(new_provides))
31
32 # We are now machine specific
33 d.setVar('PACKAGE_ARCH', d.getVar('MACHINE_ARCH'))
34}