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