From patchwork Wed May 16 15:51:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 914714 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="eJpT1Tjb"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mJpx3WwRz9s33 for ; Thu, 17 May 2018 01:52:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5884F86372; Wed, 16 May 2018 15:52:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I1J4p1mQ4J8G; Wed, 16 May 2018 15:52:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E815B86356; Wed, 16 May 2018 15:52:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 9D61E1C14DD for ; Wed, 16 May 2018 15:52:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9A1B485ED0 for ; Wed, 16 May 2018 15:52:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L-xBF4j_zAfy for ; Wed, 16 May 2018 15:52:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8FAC385E03 for ; Wed, 16 May 2018 15:52:11 +0000 (UTC) Received: by mail-wr0-f171.google.com with SMTP id p5-v6so1958793wre.12 for ; Wed, 16 May 2018 08:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0IEWRoklmiAJTRAZdkBe6ST5nDhdRzB7AKqvPRFfdr8=; b=eJpT1TjbwmkdLoW98NPHT9xqHzzJYxbdQhKt0Yaxc+AszC3WNqCwTAFzrANbJc2zdL Y1AH0u7yYVOhPmhuJLy/cs3CuBJoFDhLqMhn3im7pUo9TtT6DTlhVEj5n8nMUwOIa8V6 FtCTzE/RhSN2p0YStyDa23jdSK4ZWiOwWFpWRKwFSQr/TPguR4bv/MCa7w0nOqkwQgxx IGLBjgKp9grEza/FisHDTj5cFFeEZFK4y/AT4y7OfesMCZas3uQD7OYT/a/+fTrhkgzY CparWbw2jVCYmaCUM3UJKIAmcxho2zecF2iYZWIfDWoUlAaubOMA2ndtC4Alm2Fri0VR hkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0IEWRoklmiAJTRAZdkBe6ST5nDhdRzB7AKqvPRFfdr8=; b=Ysr0oY3EeurPmKeKJtjs1CXwU24wYq7d6FPEK/46G/vnQvZVT2GiWKl/AZs8GKhsWZ pUAhae4YJPKhJMuYMRa7Jb1squ3bj4r3oPqiKlPJ7tpou+I5Bow5UEsv0/OWPDBBdpDM 1nv08UpDX0wkX7/C+Y6RJPr3F/+nEeMLZqLPWV2l4YL+ygdB/TsTsBzC5l1bjwx7WizP CmRTJk3n3VtfQrcHLNgUCaOtC2YjKGvjY8DVxw+j7tfGpRiK/bb/OCo6AYwD3Ls1LVGk XJmRNzlL2auVgQ0BoUlUOje4yEZv7tepG/tBzyYGrfEJN8bi0yCIidGLBUjjQty0Q1Qk YfvQ== X-Gm-Message-State: ALKqPwcBTSmbo+3oiEaTbH8zrYZ1ELumTkeXx0umGPfDxCmCvjDRqzqE mICgRVCfFepdlFIJOEn+kk7pkTfV X-Google-Smtp-Source: AB8JxZrcL3J5cU6S9O3KU0vC78wK/2ep7zAKk5ZkAq2jU6RDp8MeQ6y5Q+8kYNRwEpS+6lqornnmKQ== X-Received: by 2002:adf:e147:: with SMTP id f7-v6mr1171783wri.271.1526485929895; Wed, 16 May 2018 08:52:09 -0700 (PDT) Received: from g751.home (2a01cb040a78e300dd7a6b7c9b688048.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:dd7a:6b7c:9b68:8048]) by smtp.googlemail.com with ESMTPSA id a10-v6sm3214935wri.10.2018.05.16.08.52.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 08:52:09 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Wed, 16 May 2018 17:51:59 +0200 Message-Id: <20180516155201.10279-2-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155201.10279-1-gary.bisson@boundarydevices.com> References: <20180516155201.10279-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 1/3] imx-gpu-viv: add Wayland backend option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This package has been tested with Wayland back-end using weston-imx repository on a i.MX6Q Nitrogen6x: https://source.codeaurora.org/external/imx/weston-imx/ (tag rel_imx_4.9.51_8mq_ga to work with both i.MX6 and i.MX8MQ) Weston was started as follows: # export XDG_RUNTIME_DIR=/tmp # weston --tty=1 --device=/dev/fb0 Finally the Vivante sample apps were started from weston-terminal: # cd /usr/share/examples/viv_samples/vdk/ # ./tutorial7 Signed-off-by: Gary Bisson --- package/freescale-imx/imx-gpu-viv/Config.in | 10 +++++++++- package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/package/freescale-imx/imx-gpu-viv/Config.in b/package/freescale-imx/imx-gpu-viv/Config.in index cf58ad475c..4e753a41f3 100644 --- a/package/freescale-imx/imx-gpu-viv/Config.in +++ b/package/freescale-imx/imx-gpu-viv/Config.in @@ -12,7 +12,7 @@ config BR2_PACKAGE_IMX_GPU_VIV select BR2_PACKAGE_HAS_LIBGLES select BR2_PACKAGE_HAS_LIBOPENVG help - Userspace libraries for Vivante GPU on i.MX6 platforms + Userspace libraries for Vivante GPU on i.MX platforms It contains libraries and headers for GLES, OpenCL, and OpenVG. It also contains a DRI plugin for X11. It also @@ -44,12 +44,20 @@ comment "X11 backend needs Xorg package" config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB bool "Framebuffer" +config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL + bool "Wayland" + # libdrm needed by gbm_viv.so + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_WAYLAND + select BR2_PACKAGE_HAS_LIBEGL_WAYLAND + endchoice config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT string default "x11" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11 default "fb" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB + default "wl" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL config BR2_PACKAGE_PROVIDES_LIBEGL default "imx-gpu-viv" diff --git a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk index 0dc2072984..a339c22978 100644 --- a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk +++ b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk @@ -25,6 +25,10 @@ ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11) IMX_GPU_VIV_DEPENDENCIES += xlib_libXdamage xlib_libXext xlib_libXfixes endif +ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl) +IMX_GPU_VIV_DEPENDENCIES += libdrm wayland +endif + define IMX_GPU_VIV_EXTRACT_CMDS $(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE)) endef @@ -62,6 +66,12 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG endef endif +ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl) +define IMX_GPU_VIV_FIXUP_PKGCONFIG + ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc +endef +endif + ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11) define IMX_GPU_VIV_FIXUP_PKGCONFIG for lib in egl gbm glesv1_cm glesv2 vg; do \ From patchwork Wed May 16 15:52:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 914712 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="K27EZ3Wi"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mJpt35PMz9s3B for ; Thu, 17 May 2018 01:52:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D4C67861AD; Wed, 16 May 2018 15:52:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3pPveLkw8AvZ; Wed, 16 May 2018 15:52:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 94F9B85F40; Wed, 16 May 2018 15:52:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 56C761CF1CF for ; Wed, 16 May 2018 15:52:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 520D08626C for ; Wed, 16 May 2018 15:52:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fbw4rxGfoC6J for ; Wed, 16 May 2018 15:52:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id AB63A86307 for ; Wed, 16 May 2018 15:52:12 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id t11-v6so2816221wmt.0 for ; Wed, 16 May 2018 08:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=trCMvJ4kN9mxsJZlsSQ2hDpI+J3uxVrUk/OYY6OajGE=; b=K27EZ3Wi1z/gjXxhOp9VnJHheE8L8+gv6k5Melc6HdncH4smIwU3tcSPhrpAic2+Eq ugXWpG27gVli0YIbgQLCAOuDo+KkfE8+ksW/vuM0d70o4kJ+2Th7rP+c3GJxwdXqFLHt JjBifUXGXE6Hbzb+B9EuGOz7xNkBF/hHJLRojOXTzKltgEWZnaLJwr4VGN+IEk7VsLVE OkENakhduoHxohoG/LUnzk/af5kRXT1n8Wj2sAgETumZ1f8jwd/KHhGyeJhKDysl+NAe bPq59Nk2aFbGHR0aJPFyvyIkNHPEG8Tm93Ogxv5gpbLS9F8kkfqSJU14TDtA0MowEgwN E52g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=trCMvJ4kN9mxsJZlsSQ2hDpI+J3uxVrUk/OYY6OajGE=; b=ZdPl8XAXmE6O+t9hAX202QGmzwDXc49JHrkLPUmLpD/1XZCv3cCFQNnA7UjYyOORob yHldKZ6Cy/PD/TdReXQvcf8CLuufUKsRNFrRRj6gxU7YKABY691urIIlG2iTHnISwNPT n4AR7ExFK6skXeBZYhY5GgE90xJQ6b9NEiNF0Oy0rVVOvZzfQ4mWw35b+rOI9mHynf5e 3Tu/KUFrjWJ6tRdd0fO/gCQaREhcMAJaaK30fJzFOR1/3NWYFNwTbyeOCAfr6f37ZsNK b6YhLMtXgBC3Xiade6iT4UhOVfNpyOujCphWRyAvDNUK7AbNW7uZGNMtk6cxB6Y7MkC5 8Ppg== X-Gm-Message-State: ALKqPwcuGvJR4RRf2o0a2Nj8vYbsu0mju5/gpD+P0q8H5D/j2rxAslhg 5ghVu08/aBeRxDWkblTOWKcs5ex/ X-Google-Smtp-Source: AB8JxZrx/G/hR7V97CfW4sBwNVSKYWn78gR28OHyTB6sJ41cRP7HOCw6NtiqxsQaPdPX7+dsqC2AnA== X-Received: by 2002:a1c:8cc8:: with SMTP id o191-v6mr974253wmd.83.1526485930889; Wed, 16 May 2018 08:52:10 -0700 (PDT) Received: from g751.home (2a01cb040a78e300dd7a6b7c9b688048.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:dd7a:6b7c:9b68:8048]) by smtp.googlemail.com with ESMTPSA id a10-v6sm3214935wri.10.2018.05.16.08.52.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 08:52:10 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Wed, 16 May 2018 17:52:00 +0200 Message-Id: <20180516155201.10279-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155201.10279-1-gary.bisson@boundarydevices.com> References: <20180516155201.10279-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 2/3] weston: remove dependency on mesa3d to enable egl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Other packages can actually provide Wayland libraries like imx-gpu-viv. Signed-off-by: Gary Bisson --- package/weston/weston.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/weston/weston.mk b/package/weston/weston.mk index e9de56b2c6..efe12bc01e 100644 --- a/package/weston/weston.mk +++ b/package/weston/weston.mk @@ -50,8 +50,7 @@ else WESTON_CONF_OPTS += --disable-weston-launch endif -# Needs wayland-egl, which normally only mesa provides -ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL)$(BR2_PACKAGE_MESA3D_OPENGL_ES),yy) +ifeq ($(BR2_PACKAGE_HAS_LIBEGL_WAYLAND),y) WESTON_CONF_OPTS += --enable-egl WESTON_DEPENDENCIES += libegl else From patchwork Wed May 16 15:52:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 914715 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="pg090fs0"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mJq05qwNz9s2R for ; Thu, 17 May 2018 01:52:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0990A8639B; Wed, 16 May 2018 15:52:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IepQ0jn+sRGh; Wed, 16 May 2018 15:52:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 897B386356; Wed, 16 May 2018 15:52:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 450741C14DD for ; Wed, 16 May 2018 15:52:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 429E885F40 for ; Wed, 16 May 2018 15:52:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nDUhQQc1T2Bn for ; Wed, 16 May 2018 15:52:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 695B285E2F for ; Wed, 16 May 2018 15:52:13 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id x12-v6so1693959wmc.0 for ; Wed, 16 May 2018 08:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7lYnJRmPvVMY51ePRI9YzRITp2Sp1M/3H7n9VT9TVA4=; b=pg090fs0MwU3Vjhc2H1CoeVEG6qwRyfSw0JhD8mcqM8fvNToYH9mYnRWo6sAXnVmn8 1Kb5gOoz+M6781aBxKwwnw4sNJouop8uZ9bJADsCIgstREGsFCWZIP5gbhJOx8MaeQG4 3zMh+OkNl4x2BIwEALRa0jDGszC4uWoqatwFF4d0lgQqFzlC2rFFZiXWAlUusCztM5I0 6U6ONStw7qKHcNvu73jY1tbzg8QA0kV4geAn+GKIj4WVdKoYVzm5NkQ3FVLM1X7bdL3U 9dmSEEvQOKRAjbVlGbCHZtnBXmqdhddrgS0Lks0TrUosPjMpgt3S7toAaiH4PTuRasVJ Ge9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7lYnJRmPvVMY51ePRI9YzRITp2Sp1M/3H7n9VT9TVA4=; b=Q9krUI/tlmKc6x5jkn5VnzQQ1LAhYr1QUxJ7dQMuaAykTxnfZ/x5P3mv08NiYCgP/L EdVcNbbkqGL6PPy5oB801wva2idXEgtda2dTJB5yzezjFHuVbV9QPWgI19NhJqTA0NSK pjBtk6WkSy/UwGWkDCdvppat6Yv6xQZH7eft/47jKa+kaVWNLbiVZTAjI+qwcab6kCW+ 1sr9OGMWGSLwKTTEbf7iR7VWa+59z1g6YAlCvqReIg0d1v2jkISTVHvzaOSEgwzweEhV 33VR3RhPFQikA6EgbZaV8dtS1V3W2qGEkx4QWuI1i8M/91aGM+IUYE4YiEIFU7IfrR3j 2udQ== X-Gm-Message-State: ALKqPwcC9B1SslPjSb50AgztwLGK+isptD4z+eHnOvo+26jvP0A5RKtJ ekOWmj91QXxGJxSz7qYmDo3yovOq X-Google-Smtp-Source: AB8JxZpayTYYiF9FFVZmUKJR+6fceAShzYBZ4hSpbz79rKCAeNFkqrp0OFfg9r7mJrCod+CtG9PScg== X-Received: by 2002:a1c:d9d3:: with SMTP id q202-v6mr997111wmg.84.1526485931792; Wed, 16 May 2018 08:52:11 -0700 (PDT) Received: from g751.home (2a01cb040a78e300dd7a6b7c9b688048.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:dd7a:6b7c:9b68:8048]) by smtp.googlemail.com with ESMTPSA id a10-v6sm3214935wri.10.2018.05.16.08.52.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 08:52:11 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Wed, 16 May 2018 17:52:01 +0200 Message-Id: <20180516155201.10279-4-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516155201.10279-1-gary.bisson@boundarydevices.com> References: <20180516155201.10279-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 3/3] weston: add weston-imx variant when using imx-gpu-viv X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Yann E . MORIN" , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This variant contains various optimizations for i.MX processors. For instance, on i.MX6/7 devices with GPU, the gl-renderer needs to be enabled for the fbdev-backend which was removed from upstream weston long time ago. Also, weston-imx adds support for G2D which is enabled by default, this patch makes sure to disable it when imx-gpu-g2d isn't selected. The tag version rel_imx_4.9.51_8mq_ga proved to work fine on both i.MX6Q/DL and i.MX8MQ processors. Here are the commands used to start weston on i.MX6Q: - Using 3D GPU (gl-renderer): # weston --tty=1 --device=/dev/fb0 - Using 2D GPU (G2D): # weston --tty=1 --device=/dev/fb0 --use-g2d=1 Upstream repository: https://source.codeaurora.org/external/imx/weston-imx/ Signed-off-by: Gary Bisson Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- package/weston/weston.hash | 2 ++ package/weston/weston.mk | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/package/weston/weston.hash b/package/weston/weston.hash index 55d87ac3b1..c854e66cea 100644 --- a/package/weston/weston.hash +++ b/package/weston/weston.hash @@ -3,3 +3,5 @@ md5 33709aa4d5916f89643fca0fc0064b39 weston-4.0.0.tar.xz sha1 df1da4a880920c515162e95b18f3709a46690be7 weston-4.0.0.tar.xz sha256 a0fc0ae7ef83dfbed12abfe9b8096a24a7dd00705e86fa0db1e619ded18b4b58 weston-4.0.0.tar.xz sha512 0af41016ff4eae85779f95b5c5e44b9683f4ef681a8e52256efeebfa38073082b83e039d0db3c94ac22f22f8d8314c9d6cd16611144b260b353fc5bfdd1ded19 weston-4.0.0.tar.xz +# locally computed +sha256 0f0de7b7b1f65870139c95dde7abc19ed305631ae7c5d37c386db40cde108632 weston-rel_imx_4.9.51_8mq_ga.tar.gz diff --git a/package/weston/weston.mk b/package/weston/weston.mk index efe12bc01e..1248e4a6ef 100644 --- a/package/weston/weston.mk +++ b/package/weston/weston.mk @@ -4,9 +4,16 @@ # ################################################################################ +ifeq ($(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL),y) +WESTON_VERSION = rel_imx_4.9.51_8mq_ga +WESTON_SITE = https://source.codeaurora.org/external/imx/weston-imx +WESTON_SITE_METHOD = git +WESTON_AUTORECONF = YES +else WESTON_VERSION = 4.0.0 WESTON_SITE = http://wayland.freedesktop.org/releases WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz +endif WESTON_LICENSE = MIT WESTON_LICENSE_FILES = COPYING @@ -50,6 +57,14 @@ else WESTON_CONF_OPTS += --disable-weston-launch endif +ifeq ($(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL),y) +ifeq ($(BR2_PACKAGE_IMX_GPU_G2D),y) +WESTON_DEPENDENCIES += imx-gpu-g2d +else +WESTON_CONF_OPTS += --disable-imxg2d +endif +endif + ifeq ($(BR2_PACKAGE_HAS_LIBEGL_WAYLAND),y) WESTON_CONF_OPTS += --enable-egl WESTON_DEPENDENCIES += libegl