diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2013-08-20 19:37:43 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2013-08-21 15:54:58 +0300 |
commit | caf5f88c6549362edaf69feffe430c35695b2cf1 (patch) | |
tree | 6a3b44a6080e11c7105568e6471442f5f91ab359 | |
parent | 0680e941159ea9f98075ad5a77bc948453ec581f (diff) | |
download | meta-raspberrypi-caf5f88c6549362edaf69feffe430c35695b2cf1.tar.gz |
mesa: Use libgl from mesa for raspberrypi
The graphics libraries provided by userland does not include libgl. So compile
mesa with libgl support and remove gles and egl from it as these are provided
by userland.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-graphics/mesa/mesa_9.1.6.bbappend | 34 |
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 @@ | |||
1 | PRINC := "${@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 | # | ||
7 | python __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 | } | ||