From: Gary Bisson <gary.bisson@boundarydevices.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] imx-gpu-viv: enable package for 64-bit i.MX processors
Date: Tue, 12 Jun 2018 17:02:19 +0200 [thread overview]
Message-ID: <20180612150221.31792-3-gary.bisson@boundarydevices.com> (raw)
In-Reply-To: <20180612150221.31792-1-gary.bisson@boundarydevices.com>
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 <gary.bisson@boundarydevices.com>
---
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
--
2.17.1
next prev parent reply other threads:[~2018-06-12 15:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-12 15:02 [Buildroot] [PATCH 0/4] imx: graphics packages update to 6.2.4.p1.2 Gary Bisson
2018-06-12 15:02 ` [Buildroot] [PATCH 1/4] imx-gpu-viv: bump to version 6.2.4.p1.2 Gary Bisson
2018-06-12 15:02 ` Gary Bisson [this message]
2018-06-17 13:31 ` [Buildroot] [PATCH 2/4] imx-gpu-viv: enable package for 64-bit i.MX processors Thomas Petazzoni
2018-06-17 19:23 ` Gary Bisson
2018-06-12 15:02 ` [Buildroot] [PATCH 3/4] imx-gpu-g2d: bump to version 6.2.4.p1.2 Gary Bisson
2018-06-12 15:02 ` [Buildroot] [PATCH 4/4] kernel-module-imx-gpu-viv: " Gary Bisson
2018-06-17 13:29 ` [Buildroot] [PATCH 0/4] imx: graphics packages update to 6.2.4.p1.2 Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180612150221.31792-3-gary.bisson@boundarydevices.com \
--to=gary.bisson@boundarydevices.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.