Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BC6FAE00FCD; Tue, 6 Sep 2016 10:59:48 -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=-0.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.213.68 listed in list.dnswl.org] * 2.4 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.68 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-vk0-f68.google.com (mail-vk0-f68.google.com [209.85.213.68]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 15CBCE00FBA for ; Tue, 6 Sep 2016 10:59:31 -0700 (PDT) Received: by mail-vk0-f68.google.com with SMTP id v189so4680576vkv.0 for ; Tue, 06 Sep 2016 10:59:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=wVZl78HTEdOBizn7LRZOVcqj/HM+2ppR/tqbp84XwSU=; b=R33lvYNWX+NpaWZb2Rgw5rB2/3Lo7961ne0bBIJ45ev09Yo2FWuQA4OfF800S30jA2 jtLye7wwnApyNyPffYVdCEp6kH/2RvRtzzrLhKsMHsdN5KY6pbGBXsWmIdDzaw3pcTV+ gdYw7bBmaW4lbDj/cVpugJ2fZDIhomE7eQssAoL57u9COQCiaAOaGxTmSnhHxfhOkWK7 OAMA9OUCOW9rxz9iZitHXGqeX0oFW5QtiVKs8dQffxi5yxtuiJtdwQTGAHGbSZ7oVQ75 dgmmLbQsfBQxFxiVSDQbi1jpeXpvlZko4ALGiAYAik247hGxeByuuFLkEuuzkjE/xByo 8Jkg== X-Gm-Message-State: AE9vXwPqZV2KLPqAq8LKFDTYIN7NOoes/2Zxe4WjbVnD5XgXH9xYE+smq+tnHhoDCTz9lg== X-Received: by 10.31.219.194 with SMTP id s185mr8428972vkg.31.1473184771453; Tue, 06 Sep 2016 10:59:31 -0700 (PDT) Received: from localhost ([179.105.254.222]) by smtp.gmail.com with ESMTPSA id h2sm530121uad.16.2016.09.06.10.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Sep 2016 10:59:30 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Tue, 06 Sep 2016 14:59:25 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 6 Sep 2016 14:58:05 -0300 Message-Id: <20160906175809.30139-14-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160906175809.30139-1-otavio@ossystems.com.br> References: <20160906175809.30139-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador , prabhu.sundararaj@nxp.com, white.weng@nxp.com Subject: [meta-fsl-arm PATCH v3 13/17] weston: Refactor code to use the new overrides 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: Tue, 06 Sep 2016 17:59:48 -0000 The recipe has been reworked to use the 'imxpxp', 'imxgpu2d' and 'imxgpu3d' feature overrides. While on that, the i.MX6UL specific code has been reworked to used when only PXP-only support is available, fixing the i.MX7D support as well. Signed-off-by: Otavio Salvador --- Changes in v3: None Changes in v2: None recipes-graphics/wayland/weston_%.bbappend | 61 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/recipes-graphics/wayland/weston_%.bbappend b/recipes-graphics/wayland/weston_%.bbappend index f7bfd35..1b813ab 100644 --- a/recipes-graphics/wayland/weston_%.bbappend +++ b/recipes-graphics/wayland/weston_%.bbappend @@ -1,50 +1,51 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 = " \ +SRC_URI_append_imxgpu2d = " \ file://0002-MGS-1111-Add-GPU-VIV-suport-for-wayland-and-weston-1.patch \ file://0003-MGS-1192-xwld-g2d-compositor-dose-not-work.patch \ file://0004-MGS-1235-Fix-setenv-and-clear-environments.patch \ file://0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch \ file://0006-MGS-1236-imx6qp-imx6dl-First-frame-distored-when-som.patch \ file://0007-MGS-1236-1-imx6qp-imx6dl-First-frame-distored-when-s.patch \ - " -PACKAGECONFIG_append_mx6q = " cairo-glesv2" -PACKAGECONFIG_append_mx6dl = " cairo-glesv2" -PACKAGECONFIG_append_mx6sx = " cairo-glesv2" -PACKAGECONFIG_remove_mx6sl = "egl" -PACKAGECONFIG_remove_mx6ul = "egl" - -EXTRA_OECONF_append_mx6 = " \ - --disable-libunwind \ - --disable-xwayland-test \ - WESTON_NATIVE_BACKEND=fbdev-backend.so \ " -EXTRA_OECONF_append_mx6ul = " \ + +PACKAGECONFIG_IMX_TO_APPEND = "" +PACKAGECONFIG_IMX_TO_APPEND_imxgpu3d = "cairo-glesv2" +PACKAGECONFIG_IMX_TO_REMOVE = "" +PACKAGECONFIG_IMX_TO_REMOVE_imxpxp = "egl" +PACKAGECONFIG_IMX_TO_REMOVE_imxgpu2d = "" + +PACKAGECONFIG_append = " ${PACKAGECONFIG_IMX_TO_APPEND}" +PACKAGECONFIG_remove = " ${PACKAGECONFIG_IMX_TO_REMOVE}" + + +EXTRA_OECONF_IMX = " \ --disable-libunwind \ --disable-xwayland-test \ WESTON_NATIVE_BACKEND=fbdev-backend.so \ " -EXTRA_OEMAKE_append_mx6 = " \ +EXTRA_OECONF_append_imxpxp = " ${EXTRA_OECONF_IMX}" +EXTRA_OECONF_append_imxgpu2d = " ${EXTRA_OECONF_IMX}" + +# Use a intermediate step to configure the linking flags +IMXGPU_LIBS = "" +IMXGPU_LIBS_imxgpu2d = " \ + COMPOSITOR_LIBS="-lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ + FB_COMPOSITOR_LIBS="-lEGL -lwayland-server -lxkbcommon" \ +" +IMXGPU_LIBS_imxgpu3d = " \ + COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ + FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ +" + +# Use the linking flags according to the GPU support +EXTRA_OEMAKE_append_imxgpu2d = " \ COMPOSITOR_CFLAGS="-I ${STAGING_INCDIR}/pixman-1 -DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \ FB_COMPOSITOR_CFLAGS="-DLINUX=1 -DEGL_API_FB -DEGL_API_WL" \ SIMPLE_EGL_CLIENT_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \ EGL_TESTS_CFLAGS="-DLINUX -DEGL_API_FB -DEGL_API_WL" \ CLIENT_CFLAGS="-I ${STAGING_INCDIR}/cairo -I ${STAGING_INCDIR}/pixman-1 -DLINUX -DEGL_API_FB -DEGL_API_WL" \ -" -EXTRA_OEMAKE_append_mx6q = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6dl = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6sx = " \ - COMPOSITOR_LIBS="-lGLESv2 -lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lGLESv2 -lEGL -lwayland-server -lxkbcommon" \ -" -EXTRA_OEMAKE_append_mx6sl = " \ - COMPOSITOR_LIBS="-lEGL -lGAL -lwayland-server -lxkbcommon -lpixman-1" \ - FB_COMPOSITOR_LIBS="-lEGL -lwayland-server -lxkbcommon" \ + \ + ${IMXGPU_LIBS} \ " -- 2.9.3