summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mesa/mesa_9.2.5.bbappend
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2014-02-21 22:05:47 +1100
committerJonathan Liu <net147@gmail.com>2014-02-21 22:05:47 +1100
commitfcf5cb333e2aefb840f4658269473ff36dd2475c (patch)
tree23d00f1b9dec29fbdcfd9e5daddc142ea82b4c45 /recipes-graphics/mesa/mesa_9.2.5.bbappend
parent27ae74158157fb204a168889c4cb0832bcd68ede (diff)
downloadmeta-raspberrypi-fcf5cb333e2aefb840f4658269473ff36dd2475c.tar.gz
mesa: rename .bbappend to match new version from oe-core
Change-Id: Ie3c7bc3e70bfd46cea64ef813c3875d1ba8d07fc Signed-off-by: Jonathan Liu <net147@gmail.com>
Diffstat (limited to 'recipes-graphics/mesa/mesa_9.2.5.bbappend')
-rw-r--r--recipes-graphics/mesa/mesa_9.2.5.bbappend36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa_9.2.5.bbappend b/recipes-graphics/mesa/mesa_9.2.5.bbappend
new file mode 100644
index 0000000..34da98f
--- /dev/null
+++ b/recipes-graphics/mesa/mesa_9.2.5.bbappend
@@ -0,0 +1,36 @@
1PRINC := "${@int(PRINC) + 2}"
2
3#
4# FIXME
5# We need a way to disable EGL and GL ES2, these are provided by userland package
6#
7python __anonymous () {
8 import re
9
10 machine = d.getVar('MACHINE', True)
11 if machine == 'raspberrypi':
12 # Remove egl and gles2 configure options
13 extra_oeconf = d.getVar('EXTRA_OECONF', True).split()
14 take_out = ['--enable-egl', '--enable-gles2', '--enable-gles1']
15 put_in = ['--disable-egl', '--disable-gles2', '--disable-gles1']
16 pattern = re.compile("--with-egl-platforms")
17 new_extra_oeconf = []
18 for i in extra_oeconf:
19 if i not in take_out and not pattern.match(i):
20 new_extra_oeconf.append(i)
21 for i in put_in:
22 new_extra_oeconf.append(i)
23 d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf))
24
25 # Remove egl and gles2 from provides
26 provides = d.getVar('PROVIDES', True).split()
27 take_out = ['virtual/libgles2', 'virtual/egl', 'virtual/libgles1']
28 new_provides = []
29 for i in provides:
30 if i not in take_out:
31 new_provides.append(i)
32 d.setVar('PROVIDES', ' '.join(new_provides))
33
34 # We are now machine specific
35 d.setVar('PACKAGE_ARCH', d.getVar('MACHINE_ARCH'))
36}