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