diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2013-06-10 14:08:32 -0700 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@intel.com> | 2013-06-12 11:11:51 -0500 |
commit | e83a83d58bba5056075acc5b0b55253554594965 (patch) | |
tree | b0eaa5b42863a8db6face679134e6fc2ce60e9d9 /common/recipes-graphics/mesa/mesa_9.1.3.bbappend | |
parent | edf3ef3cca449c7a631bab3fd0fed580378629e9 (diff) | |
download | meta-intel-e83a83d58bba5056075acc5b0b55253554594965.tar.gz |
mesa: sync up with oecore
The mesa recipe from the oecore layer has been updated.
This commit updates the .bbappend for the mesa recipe
in this meta-intel layer to sync up with the oecore layer.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'common/recipes-graphics/mesa/mesa_9.1.3.bbappend')
-rw-r--r-- | common/recipes-graphics/mesa/mesa_9.1.3.bbappend | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/common/recipes-graphics/mesa/mesa_9.1.3.bbappend b/common/recipes-graphics/mesa/mesa_9.1.3.bbappend new file mode 100644 index 00000000..b92831d3 --- /dev/null +++ b/common/recipes-graphics/mesa/mesa_9.1.3.bbappend | |||
@@ -0,0 +1,24 @@ | |||
1 | |||
2 | # The emgd binary driver also provides egl, gles1, gles2 library & headers. | ||
3 | # To avoid conflict disable egl, gles1, gles2 from meta-dri if the BSP image | ||
4 | # is bundling the emgd driver. | ||
5 | |||
6 | python __anonymous () { | ||
7 | import re | ||
8 | xserver = d.getVar('XSERVER', True) | ||
9 | if xserver and 'emgd-driver-bin' in xserver.split(' '): | ||
10 | extra_oeconf = d.getVar('EXTRA_OECONF', True).split() | ||
11 | take_out = ["--enable-egl", "--enable-gles1", "--enable-gles2"] | ||
12 | put_in = ["--disable-egl", "--disable-gles1", "--disable-gles2"] | ||
13 | pattern = re.compile("--with-egl-platforms") | ||
14 | new_extra_oeconf = [ ] | ||
15 | for i in extra_oeconf: | ||
16 | if ( i not in take_out ) and ( not pattern.match(i)): | ||
17 | new_extra_oeconf.append(i) | ||
18 | for i in put_in: | ||
19 | new_extra_oeconf.append(i) | ||
20 | |||
21 | d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf)) | ||
22 | depends = d.getVar('DEPENDS', True) | ||
23 | d.setVar('DEPENDS', depends + " emgd-driver-bin") | ||
24 | } | ||