From: "Jérôme Pouiller" <jezz@sysmic.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 06/13] gpu-viv-bin-mx6q: change output selection mecanism
Date: Mon, 13 Oct 2014 13:10:16 +0200 [thread overview]
Message-ID: <1413198623-22373-7-git-send-email-jezz@sysmic.org> (raw)
In-Reply-To: <1413198623-22373-1-git-send-email-jezz@sysmic.org>
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/freescale-imx/gpu-viv-bin-mx6q/Config.in | 5 +++++
.../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk | 21 +++++++++------------
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
index 904b011..489e68e 100644
--- a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
@@ -45,6 +45,11 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_FB
endchoice
+config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT
+ string
+ default "x11" if BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_X11
+ default "fb" if BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_FB
+
config BR2_PACKAGE_PROVIDES_LIBEGL
default "gpu-viv-bin-mx6q"
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
index e24d171..6bc5d4d 100644
--- a/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
@@ -24,14 +24,7 @@ GPU_VIV_BIN_MX6Q_LICENSE = Freescale Semiconductor Software License Agreement
GPU_VIV_BIN_MX6Q_REDISTRIBUTE = NO
GPU_VIV_BIN_MX6Q_PROVIDES = libegl libgles libopenvg
-
-# DirectFB is not supported (wrong version)
-ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_X11),y)
-GPU_VIV_BIN_MX6Q_DEPENDENCIES = xlib_libXdamage xlib_libXext
-GPU_VIV_BIN_MX6Q_LIB_TARGET = x11
-else
-GPU_VIV_BIN_MX6Q_LIB_TARGET = fb
-endif
+GPU_VIV_BIN_MX6Q_LIB_TARGET = $(call qstrip,$(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT))
# The archive is a shell-self-extractor of a bzipped tar. It happens
# to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z)
@@ -48,13 +41,17 @@ endef
# Make sure these commands are idempotent.
define GPU_VIV_BIN_MX6Q_BUILD_CMDS
$(SED) 's/defined(LINUX)/defined(__linux__)/g' $(@D)/usr/include/*/*.h
- for lib in EGL GAL VIVANTE GLESv2; do \
- ln -sf lib$${lib}-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so \
- $(@D)/usr/lib/lib$${lib}.so; \
- done
ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so
ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so.1
ln -sf libGL.so.1.2 $(@D)/usr/lib/libGL.so.1.2.0
+ ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so
+ ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so.1
+ ln -sf libEGL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libEGL.so.1.0
+ ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so
+ ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so.2
+ ln -sf libGLESv2-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGLESv2.so.2.0.0
+ ln -sf libVIVANTE-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libVIVANTE.so
+ ln -sf libGAL-$(GPU_VIV_BIN_MX6Q_LIB_TARGET).so $(@D)/usr/lib/libGAL.so
endef
define GPU_VIV_BIN_MX6Q_INSTALL_STAGING_CMDS
--
1.9.1
next prev parent reply other threads:[~2014-10-13 11:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-13 11:10 [Buildroot] [PATCH v2 00/13] Add Xorg support for imx6 Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 01/13] mesa3d: Give possibility to external backends to enable DRI/Gallium Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 02/13] gpu-viv-bin-mx6q: provide libopenvg Jérôme Pouiller
2014-10-29 21:44 ` Thomas Petazzoni
2014-10-13 11:10 ` [Buildroot] [PATCH v2 03/13] gpu-viv-bin-mx6q: fix compiling issues with EGL_API_FB Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 04/13] gpu-viv-bin-mx6q: fix GLESv2 support Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 05/13] gpu-viv-bin-mx6q: make fb/x11 choice explicit Jérôme Pouiller
2014-10-13 11:10 ` Jérôme Pouiller [this message]
2014-10-13 11:10 ` [Buildroot] [PATCH v2 07/13] libdrm: fix support for xserver with Vivante drivers Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 08/13] qt5base: fix Vivante x11/EGL configuration Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 09/13] xdriver_xf86-video-imx-viv: new package Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 10/13] Vivante drivers: bump to version 3.10.17-1.0.1 Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 11/13] nitrogen6x_defconfig: bump kernel to 3.10.17_1.0.1_ga Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 12/13] freescale_imx6*_defconfig: " Jérôme Pouiller
2014-10-13 11:10 ` [Buildroot] [PATCH v2 13/13] qmx6_defconfig: update Jérôme Pouiller
2014-11-16 8:33 ` [Buildroot] [PATCH v2 00/13] Add Xorg support for imx6 Gary Bisson
2014-11-16 8:37 ` Gary Bisson
2014-11-16 22:33 ` Jérôme Pouiller
2014-11-29 4:48 ` Gary Bisson
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=1413198623-22373-7-git-send-email-jezz@sysmic.org \
--to=jezz@sysmic.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox