diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2013-11-12 16:11:02 +0000 |
---|---|---|
committer | Gherzan Code Review <gerrit2@gherzan.ro> | 2013-11-12 16:11:02 +0000 |
commit | fef11f98cf62a9f21472a42382d1ebab37eee806 (patch) | |
tree | 6955a44a29fbb82194fd5b7110f0d4e27fda606b | |
parent | 9fb923aa8dd3c217808134398fca159876ceb464 (diff) | |
parent | 40267fd013085cad09404314dcc27f6cc1772504 (diff) | |
download | meta-raspberrypi-fef11f98cf62a9f21472a42382d1ebab37eee806.tar.gz |
Merge "mesa: Remove egl and gles only for raspberrypi machine"
-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 | } |