summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2014-02-21 09:11:48 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2014-02-24 10:59:46 -0300
commit9621bdb3f905852e7490b2b5a8b481e51ea154c7 (patch)
tree7877d01d7734dd3c4730ffcec0bc2810696d6de5
parent3ebe4603e20668e0c038fb136404b580ee5be472 (diff)
downloadmeta-fsl-arm-9621bdb3f905852e7490b2b5a8b481e51ea154c7.tar.gz
mesa: Update to follow OE-Core changes
This updates the bbappend to the newer version; as mesa now provides the needed PACKAGECONFIG settings we rely on this instead of using an annonymous Python code to change it during build time. The bbappend file now is much easier to read. Change-Id: Ie7b6027462f458d139d0561e737b254dd8b07653 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Tested-by: Gary Thomas <gary@mlbassoc.com> Tested-by: John Weber <rjohnweber@gmail.com>
-rw-r--r--recipes-graphics/mesa/mesa_%.bbappend10
-rw-r--r--recipes-graphics/mesa/mesa_9.2.2.bbappend40
2 files changed, 10 insertions, 40 deletions
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
new file mode 100644
index 0000000..8e0a36b
--- /dev/null
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -0,0 +1,10 @@
1PACKAGECONFIG_remove_mx5 = "egl gles"
2PROVIDES_remove_mx5 = "virtual/libgles1 virtual/libgles2 virtual/egl"
3
4PACKAGECONFIG_remove_mx6 = "egl gles"
5PROVIDES_remove_mx6 = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
6
7# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
8do_install_append_mx6 () {
9 rm -f ${D}${libdir}/libGL.*
10}
diff --git a/recipes-graphics/mesa/mesa_9.2.2.bbappend b/recipes-graphics/mesa/mesa_9.2.2.bbappend
deleted file mode 100644
index 9975abc..0000000
--- a/recipes-graphics/mesa/mesa_9.2.2.bbappend
+++ /dev/null
@@ -1,40 +0,0 @@
1# FIXME: We may need to disable EGL, GL ES1 and GL ES2
2python __anonymous () {
3 import re
4
5 # SoC families to work on
6 families = ['mx5', 'mx6']
7 cur_soc_families = d.getVar('SOC_FAMILY', True)
8 if cur_soc_families and \
9 any(map(lambda x: x in cur_soc_families.split(':'), families)):
10 # Remove egl gles1 and gles2 configure options
11 extra_oeconf = d.getVar('EXTRA_OECONF', True).split()
12 take_out = ['--enable-egl', '--enable-gles1', '--enable-gles2']
13 put_in = ['--disable-egl', '--disable-gles1', '--disable-gles2']
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
22 d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf))
23
24 # Remove itens from provides
25 provides = d.getVar('PROVIDES', True).split()
26 take_out = ['virtual/libgles1', 'virtual/libgles2', 'virtual/egl']
27 if 'mx6' in cur_soc_families.split(':'):
28 take_out.append('virtual/libgl')
29 new_provides = []
30 for i in provides:
31 if i not in take_out:
32 new_provides.append(i)
33
34 d.setVar('PROVIDES', ' '.join(new_provides))
35}
36
37# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
38do_install_append_mx6 () {
39 rm -f ${D}${libdir}/libGL.*
40}