From patchwork Tue Jun 12 15:02:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 928357 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.137; helo=fraxinus.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="DLyhN9Ar"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 414tRC3N0Wz9s0w for ; Wed, 13 Jun 2018 01:02:47 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7E7E288E7B; Tue, 12 Jun 2018 15:02:45 +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 4jizs_NPDcRv; Tue, 12 Jun 2018 15:02:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id BBBBE88E73; Tue, 12 Jun 2018 15:02:44 +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 4F6D01BFFDE for ; Tue, 12 Jun 2018 15:02:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3100088E5F for ; Tue, 12 Jun 2018 15:02:38 +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 DnKQ42CJh7yf for ; Tue, 12 Jun 2018 15:02:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 262678888C for ; Tue, 12 Jun 2018 15:02:32 +0000 (UTC) Received: by mail-wr0-f172.google.com with SMTP id v13-v6so24453015wrp.13 for ; Tue, 12 Jun 2018 08:02:32 -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=au/XVAwdP/d7B8VYbEIQxrxhGCmdDEAxxvykvjYH3VE=; b=DLyhN9ArMPe/NxJL9j5HUuMnSzExgslwN/KH+LodaQ9lJogSBQA5eH+UNyYZu6UIv/ H+wTVn4MHme/qNSatiyHLzD2ZAIUot9jW+faiKADrHU+/jp8tyZCvLSmCxc9sT7g67RT HinRFX8D1HNDE9EfUg7N1Aawe1BPlHV3YeI4WT493ol7C0OV0JJBYwDO6o2TJgYUK5Lx wFDOv/GhuNYEVnrbcg2prFkC3A6VkicLzFpIJmOv6U5t36zrOXe+6+XwT5BRKRDtF/oJ pxyjHtN4pBySW2gYegQ6InZ9KStJU+RdNDRF+vIC7fLWp4BDODVcZwYs5kNHOPq80yRq EAuw== 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=au/XVAwdP/d7B8VYbEIQxrxhGCmdDEAxxvykvjYH3VE=; b=K3G2mPg1I5IXsOyFEGru2/wSucy98rDrXPw9ekPeUpndholCOTzvq+QL+MscZSKW4y aX1yR5RJxKMEjA2fbAux9pYxYnzqHV85ybg1CNbXBoalOyrpqL/4h1wDzbatogA9EnR+ 64r8VL2LgrCkXRcXfYFf4hUNwZvYafrfrJAynGVGmGebHqL2QKbJ1f2Ucpwu8SJDGRws zjdEYejHJrwolgLnc3Bf4Y3jSE60zYQ7b2Np8tWX5IoV1H7eIkap+I+ICDvngI+dhAWA SeJ7QZMwqBY+GMdIdgGaHFpk2yidGgaeBO3JpuGPfj2ENWp1FC2jMg81UvBI4BDrhxb/ v6Sw== X-Gm-Message-State: APt69E3hhN3kKCT+6WGjIq9UNpde1b0cq8KzbxnJYQt5fzmd7VoNR2sz EYTiFDngx9juPG/uv2WDjmYNWXc1 X-Google-Smtp-Source: ADUXVKKjuViR9urWIJ6yxKSRquM6ti5LvLqZ48yM2AtSyg/MDAlJ7po8GfR/Lu1zVGVh8jskVQywQg== X-Received: by 2002:adf:8747:: with SMTP id 7-v6mr554857wrz.117.1528815750438; Tue, 12 Jun 2018 08:02:30 -0700 (PDT) Received: from g751.home (2a01cb040a78e30014a2325f3b382cd8.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:14a2:325f:3b38:2cd8]) by smtp.googlemail.com with ESMTPSA id 132-v6sm1004622wmr.33.2018.06.12.08.02.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 08:02:29 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Tue, 12 Jun 2018 17:02:19 +0200 Message-Id: <20180612150221.31792-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180612150221.31792-1-gary.bisson@boundarydevices.com> References: <20180612150221.31792-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH 2/4] imx-gpu-viv: enable package for 64-bit i.MX processors 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: thomas.petazzoni@bootlin.com MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Basically enabling the package for aarch64. One difference with 32-bit i.MX platforms resides in the fact that Wayland is the only back-end supported. Therefore X11 and Framebuffer options are masked. This was tested on i.MX8MQ Nitrogen8M platform (with weston-imx): # cd /usr/share/examples/viv_samples/vdk/ # ./tutorial7 Signed-off-by: Gary Bisson --- package/freescale-imx/Config.in | 7 ++++++- package/freescale-imx/imx-gpu-viv/Config.in | 10 +++++++++- package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash | 1 + package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 4 ++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index 97aeb15764..b42cd2bfd7 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -69,7 +69,12 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU bool default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q || \ BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6S || \ - BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 || \ + BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + +config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU_WAYLAND_ONLY + bool + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M source "package/freescale-imx/imx-alsa-plugins/Config.in" source "package/freescale-imx/imx-codec/Config.in" diff --git a/package/freescale-imx/imx-gpu-viv/Config.in b/package/freescale-imx/imx-gpu-viv/Config.in index 4e753a41f3..ea645890e6 100644 --- a/package/freescale-imx/imx-gpu-viv/Config.in +++ b/package/freescale-imx/imx-gpu-viv/Config.in @@ -2,10 +2,14 @@ comment "imx-gpu-viv needs a glibc toolchain with armhf enabled" depends on BR2_arm depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF +comment "imx-gpu-viv needs a glibc toolchain" + depends on BR2_aarch64 + depends on !BR2_TOOLCHAIN_USES_GLIBC + config BR2_PACKAGE_IMX_GPU_VIV bool "imx-gpu-viv" # Pre-built binaries only available for ARM EABIhf - depends on BR2_ARM_EABIHF + depends on (BR2_arm && BR2_ARM_EABIHF) || BR2_aarch64 # Library binaries are linked against libc.so.6 depends on BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_HAS_LIBEGL @@ -31,6 +35,8 @@ choice direct framebuffer access, one for X11 rendering. Choose here which version to install. +if !BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU_WAYLAND_ONLY + config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11 bool "X11" depends on BR2_PACKAGE_XORG7 @@ -44,6 +50,8 @@ comment "X11 backend needs Xorg package" config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB bool "Framebuffer" +endif + config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL bool "Wayland" # libdrm needed by gbm_viv.so diff --git a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash index 3b54eec099..2cbc36a185 100644 --- a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash +++ b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.hash @@ -1 +1,2 @@ sha256 dddadd164bede4793409ccfb636324dd73862c33458db66a5860f126bada25dc imx-gpu-viv-6.2.4.p1.2-aarch32.bin +sha256 27ed3f58681cef18f87ea20946cc89b2cef4848006064303d20583e6ed7aeec7 imx-gpu-viv-6.2.4.p1.2-aarch64.bin 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 35ff9d457c..511e3b3b6c 100644 --- a/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk +++ b/package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk @@ -4,7 +4,11 @@ # ################################################################################ +ifeq ($(BR2_aarch64),y) +IMX_GPU_VIV_VERSION = 6.2.4.p1.2-aarch64 +else IMX_GPU_VIV_VERSION = 6.2.4.p1.2-aarch32 +endif IMX_GPU_VIV_SITE = $(FREESCALE_IMX_SITE) IMX_GPU_VIV_SOURCE = imx-gpu-viv-$(IMX_GPU_VIV_VERSION).bin