mirror of
git://git.yoctoproject.org/meta-intel
synced 2026-01-04 16:10:06 +00:00
check for xserver to be non-empty before using it fixed errors like ERROR: Failed to parse recipe: /b/kraj/yocto/poky/meta/recipes-graphics/mesa/mesa-dri_8.0.4.bb ERROR: Error executing a python function in <code>: AttributeError: 'NoneType' object has no attribute 'split' Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
25 lines
985 B
Plaintext
25 lines
985 B
Plaintext
|
|
# The emgd binary driver also provides egl, gles1, gles2 library & headers.
|
|
# To avoid conflict disable egl, gles1, gles2 from meta-dri if the BSP image
|
|
# is bundling the emgd driver.
|
|
|
|
python __anonymous () {
|
|
import re
|
|
xserver = d.getVar('XSERVER', True)
|
|
if xserver and 'emgd-driver-bin' in xserver.split(' '):
|
|
extra_oeconf = d.getVar('EXTRA_OECONF', True).split()
|
|
take_out = ["--enable-egl", "--enable-gles1", "--enable-gles2"]
|
|
put_in = ["--disable-egl", "--disable-gles1", "--disable-gles2"]
|
|
pattern = re.compile("--with-egl-platforms")
|
|
new_extra_oeconf = [ ]
|
|
for i in extra_oeconf:
|
|
if ( i not in take_out ) and ( not pattern.match(i)):
|
|
new_extra_oeconf.append(i)
|
|
for i in put_in:
|
|
new_extra_oeconf.append(i)
|
|
|
|
d.setVar('EXTRA_OECONF', ' '.join(new_extra_oeconf))
|
|
depends = d.getVar('DEPENDS', True)
|
|
d.setVar('DEPENDS', depends + " emgd-driver-bin")
|
|
}
|