diff options
| author | Andrei Gherzan <andrei@gherzan.ro> | 2014-02-25 13:49:40 +0200 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.ro> | 2014-02-25 17:45:00 +0200 |
| commit | bdb6b72284e1560725098db11cdf745c54ee6139 (patch) | |
| tree | 53da00c5b39fc34af02cb60cd0c1fd74a7277844 | |
| parent | 9d626df7b8e143f66e8ce9971605d60eae10a2b2 (diff) | |
| download | meta-raspberrypi-bdb6b72284e1560725098db11cdf745c54ee6139.tar.gz | |
mesa: Replace ugly fix for gles/egl
Use instead, the special created recipe mesa-gl which provides on libgl.
Change-Id: I5ed3c50a0a794f8ea63cc1906f0139ec47459fa6
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
| -rw-r--r-- | conf/machine/include/rpi-default-providers.inc | 2 | ||||
| -rw-r--r-- | recipes-graphics/mesa/mesa_9.2.5.bbappend | 36 |
2 files changed, 2 insertions, 36 deletions
diff --git a/conf/machine/include/rpi-default-providers.inc b/conf/machine/include/rpi-default-providers.inc index 3c5b294..ee3a3ac 100644 --- a/conf/machine/include/rpi-default-providers.inc +++ b/conf/machine/include/rpi-default-providers.inc | |||
| @@ -5,4 +5,6 @@ PREFERRED_PROVIDER_u-boot = "u-boot-rpi" | |||
| 5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" | 5 | PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" |
| 6 | PREFERRED_PROVIDER_virtual/egl ?= "userland" | 6 | PREFERRED_PROVIDER_virtual/egl ?= "userland" |
| 7 | PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" | 7 | PREFERRED_PROVIDER_virtual/libgles2 ?= "userland" |
| 8 | PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl" | ||
| 9 | PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl" | ||
| 8 | PREFERRED_PROVIDER_jpeg = "jpeg" | 10 | PREFERRED_PROVIDER_jpeg = "jpeg" |
diff --git a/recipes-graphics/mesa/mesa_9.2.5.bbappend b/recipes-graphics/mesa/mesa_9.2.5.bbappend deleted file mode 100644 index 34da98f..0000000 --- a/recipes-graphics/mesa/mesa_9.2.5.bbappend +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | PRINC := "${@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 | # | ||
| 7 | python __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 | } | ||
