Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérôme Pouiller" <jezz@sysmic.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 06/11] gpu-viv-bin-mx6q: make fb/x11 choice explicit
Date: Fri,  3 Oct 2014 14:43:27 +0200	[thread overview]
Message-ID: <1412340212-3089-7-git-send-email-jezz@sysmic.org> (raw)
In-Reply-To: <1412340212-3089-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   | 24 ++++++++++++++++++++--
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk           |  2 +-
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
index 4e83dd3..904b011 100644
--- a/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/Config.in
@@ -7,8 +7,6 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 	select BR2_PACKAGE_HAS_LIBEGL
 	select BR2_PACKAGE_HAS_LIBGLES
 	select BR2_PACKAGE_HAS_LIBOPENVG
-	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
-	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
 	depends on BR2_arm # Only relevant for i.MX6
 	# Library binaries are linked against libc.so.6
 	depends on BR2_TOOLCHAIN_USES_GLIBC
@@ -25,6 +23,28 @@ config BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 
 if BR2_PACKAGE_GPU_VIV_BIN_MX6Q
 
+choice
+	prompt "Output option"
+	help
+	  There are two versions of this library: one for
+	  direct framebuffer access, one for X11 rendering.
+	  Choose here which version to install.
+
+config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_X11
+	depends on BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXDAMAGE
+	select BR2_PACKAGE_XLIB_LIBXEXT
+	select BR2_PACKAGE_LIBDRM
+	bool "X11"
+
+comment "X11 backend needs Xorg package"
+	depends on !BR2_PACKAGE_XORG7
+
+config BR2_PACKAGE_GPU_VIV_BIN_MX6Q_OUTPUT_FB
+	bool "Framebuffer"
+
+endchoice
+
 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 c04ba29..5a58cd8 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
@@ -26,7 +26,7 @@ GPU_VIV_BIN_MX6Q_REDISTRIBUTE = NO
 GPU_VIV_BIN_MX6Q_PROVIDES = libegl libgles libopenvg
 
 # DirectFB is not supported (wrong version)
-ifeq ($(BR2_PACKAGE_XORG7),y)
+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
-- 
2.1.0

  parent reply	other threads:[~2014-10-03 12:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 12:43 [Buildroot] [PATCH 00/11] Add Xorg support for imx6 Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 01/11] mesa3d: Fix package requirements Jérôme Pouiller
2014-10-03 12:52   ` Bernd Kuhls
2014-10-03 14:14     ` Jérôme Pouiller
2014-10-03 14:28       ` Bernd Kuhls
2014-10-03 14:33       ` Jérôme Pouiller
2014-10-03 14:45         ` Bernd Kuhls
2014-10-03 15:02           ` Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 02/11] freescale-imx: bump to version 3.10.17-1.0.1 Jérôme Pouiller
2014-10-07 16:42   ` [Buildroot] [02/11] " Gary Bisson
2014-10-03 12:43 ` [Buildroot] [PATCH 03/11] gpu-viv-bin-mx6q: provide libopenvg Jérôme Pouiller
2014-10-12 17:08   ` Yann E. MORIN
2014-10-03 12:43 ` [Buildroot] [PATCH 04/11] gpu-viv-bin-mx6q: fix compiling issues with EGL_API_FB Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 05/11] gpu-viv-bin-mx6q: fix GLESv2 support Jérôme Pouiller
2014-10-03 12:43 ` Jérôme Pouiller [this message]
2014-10-03 12:43 ` [Buildroot] [PATCH 07/11] gpu-viv-bin-mx6q: change output selection mecanism Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 08/11] xdriver_xf86-video-imx-viv: new package Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 09/11] libdrm: fix support for xserver with Vivante drivers Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 10/11] qt5base: fix Vivante x11/EGL configuration Jérôme Pouiller
2014-10-03 12:43 ` [Buildroot] [PATCH 11/11] qmx6_defconfig: update Jérôme Pouiller

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=1412340212-3089-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