weston: Ensure that GPU_PATCH is included only once.
PATCH 1/1 weston: Ensure that GPU_PATCH is included only once.
* This happens for example with the wandboard because for this board SOC_FAMILY is defined as "mx6:mx6dl:mx6q". Therefore GPU_PATCH is included twice, causing this:
Patch 0001-MGS-840-Add-i.MX6-support-for-weston.patch is already applied; check your series file
ERROR: Function failed: patch_do_patch
--- recipes-graphics/wayland/weston_%.bbappend | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
recipes-graphics/wayland/weston_%.bbappend +6 -4
@@ -2,10 +2,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # only install patch for mx6 with a GPU GPU_PATCH = "file://0001-MGS-840-Add-i.MX6-support-for-weston.patch" -SRC_URI_append_mx6q = " ${GPU_PATCH}" -SRC_URI_append_mx6dl = " ${GPU_PATCH}" -SRC_URI_append_mx6sx = " ${GPU_PATCH}" -SRC_URI_append_mx6sl = " ${GPU_PATCH}" +python __anonymous () { + gpu_families = [ 'mx6q', 'mx6dl', 'mx6sx', 'mx6sl' ] + cur_families = (d.getVar('SOC_FAMILY', True) or '').split(':') + if any(map(lambda x: x in cur_families, gpu_families)): + d.appendVar('SRC_URI', ' ' + d.getVar('GPU_PATCH', True)) +} PACKAGECONFIG_append_mx6q = " cairo-glesv2" PACKAGECONFIG_append_mx6dl = " cairo-glesv2"
Signature · 1 line
2.1.4
Quoted 6 lines · Carlos Alberto Lopez Perez
* This happens for example with the wandboard because for this board
SOC_FAMILYis defined as "mx6:mx6dl:mx6q". ThereforeGPU_PATCHis included twice, causing this:Patch 0001-MGS-840-Add-i.MX6-support-for-weston.patch is already applied; check your series file
ERROR: Function failed:patch_do_patch
We are reverting this change along with the other i.MX6 UltraLite related ones; please refer[1] for more information.
1. http://patchwork.openembedded.org/patch/102423/
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750