Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EF293E00D1F; Wed, 9 Sep 2015 08:04:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [212.51.32.191 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 67 seconds by postgrey-1.32 at yocto-www; Wed, 09 Sep 2015 08:04:09 PDT Received: from smtp4.mundo-r.com (smtp3.mundo-r.com [212.51.32.191]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7A654E00A81 for ; Wed, 9 Sep 2015 08:04:09 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CDBQDOKvBV/5tjdVtdGQEBgwgBrnKRYIdAOxEBAQEBAQEBgQqPJgGleaROhnOKJYQVBYcuhneHMYx6gUyNKIgYg2wmgUoMgiw8iHwBAQE X-IPAS-Result: A2CDBQDOKvBV/5tjdVtdGQEBgwgBrnKRYIdAOxEBAQEBAQEBgQqPJgGleaROhnOKJYQVBYcuhneHMYx6gUyNKIgYg2wmgUoMgiw8iHwBAQE X-IronPort-AV: E=Sophos;i="5.17,496,1437429600"; d="scan'208";a="20598908" Received: from fanzine.igalia.com ([91.117.99.155]) by smtp4.mundo-r.com with ESMTP; 09 Sep 2015 17:03:00 +0200 Received: from getafix.local.igalia.com ([192.168.10.35]) by fanzine.igalia.com with esmtpsa (Cipher TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim) id 1ZZgto-0002dY-HT for ; Wed, 09 Sep 2015 17:03:00 +0200 From: Carlos Alberto Lopez Perez To: meta-freescale@yoctoproject.org Date: Wed, 9 Sep 2015 17:03:00 +0200 Message-Id: <1441810980-10827-1-git-send-email-clopez@igalia.com> X-Mailer: git-send-email 2.1.4 Subject: [meta-fsl-arm][PATCH] weston: Ensure that GPU_PATCH is included only once. X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2015 15:04:13 -0000 * 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(-) diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend index a254f07..93ff013 100644 --- a/recipes-graphics/wayland/weston_%.bbappend +++ b/recipes-graphics/wayland/weston_%.bbappend @@ -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" -- 2.1.4