All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 07/21] qt5base: add rPi EGL glue code
Date: Tue, 19 Mar 2013 20:29:40 +0100	[thread overview]
Message-ID: <1363721394-14973-8-git-send-email-thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <1363721394-14973-1-git-send-email-thomas.petazzoni@free-electrons.com>

From: Floris Bos <bos@je-eigen-domein.nl>

When the rpi-userland package is selected, assume we are targetting
the Raspberry Pi, and add the right platform glue code when building
the Qt5 EGLFS plugin.

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/qt5/qt5base/qt5base-mkspecs-files.patch |    5 ++++-
 package/qt5/qt5base/qt5base.mk                  |    6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/package/qt5/qt5base/qt5base-mkspecs-files.patch b/package/qt5/qt5base/qt5base-mkspecs-files.patch
index a86d0b1..d5827f6 100644
--- a/package/qt5/qt5base/qt5base-mkspecs-files.patch
+++ b/package/qt5/qt5base/qt5base-mkspecs-files.patch
@@ -14,7 +14,7 @@ Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf
 ===================================================================
 --- /dev/null
 +++ b/mkspecs/devices/linux-buildroot-g++/qmake.conf
-@@ -0,0 +1,38 @@
+@@ -0,0 +1,41 @@
 +MAKEFILE_GENERATOR      = UNIX
 +CONFIG                  += incremental gdb_dwarf_index
 +QMAKE_INCREMENTAL_STYLE = sublib
@@ -49,6 +49,9 @@ Index: b/mkspecs/devices/linux-buildroot-g++/qmake.conf
 +
 +QMAKE_LIBS             += -lrt -lpthread -ldl
 +
++# device specific glue code
++EGLFS_PLATFORM_HOOKS_SOURCES =
++
 +# Sanity check
 +deviceSanityCheckCompiler()
 +
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index ac63e98..3b4c007 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -75,6 +75,10 @@ endif
 ifeq ($(BR2_PACKAGE_QT5BASE_EGLFS),y)
 QT5BASE_CONFIGURE_OPTS += -opengl es2 -eglfs
 QT5BASE_DEPENDENCIES   += libgles libegl
+ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
+QT5BASE_EGLFS_PLATFORM_HOOKS_SOURCES = \
+	$(@D)/mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
+endif
 else
 QT5BASE_CONFIGURE_OPTS += -no-opengl -no-eglfs
 endif
@@ -125,6 +129,8 @@ define QT5BASE_CONFIGURE_CMDS
 	$(call QT5BASE_CONFIG_SET,CROSS_COMPILE,$(TARGET_CROSS))
 	$(call QT5BASE_CONFIG_SET,COMPILER_CFLAGS,$(TARGET_CFLAGS))
 	$(call QT5BASE_CONFIG_SET,COMPILER_CXXFLAGS,$(TARGET_CXXFLAGS))
+	$(call QT5BASE_CONFIG_SET,EGLFS_PLATFORM_HOOKS_SOURCES, \
+		$(QT5BASE_EGLFS_PLATFORM_HOOKS_SOURCES))
 	(cd $(@D); \
 		PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
 		PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
-- 
1.7.9.5

  parent reply	other threads:[~2013-03-19 19:29 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 19:29 [Buildroot] [PATCH v4] More Qt5 stuff Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 01/21] qt5base: add OpenSSL support Thomas Petazzoni
2013-03-19 21:07   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 02/21] qt5base: add eglfs graphics backend Thomas Petazzoni
2013-03-19 21:08   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 03/21] qt5base: add support for fontconfig, png, jpeg, gif Thomas Petazzoni
2013-03-19 21:10   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 04/21] qt5base: add D-Bus support Thomas Petazzoni
2013-03-19 21:11   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 05/21] qt5base: add glib support Thomas Petazzoni
2013-03-19 21:14   ` Peter Korsgaard
2013-03-20  8:35     ` Thomas Petazzoni
2013-03-27 17:19       ` Arnout Vandecappelle
2013-03-19 19:29 ` [Buildroot] [PATCH v4 06/21] qt5base: add support to build against ICU Thomas Petazzoni
2013-03-19 21:40   ` Peter Korsgaard
2013-03-19 19:29 ` Thomas Petazzoni [this message]
2013-03-19 21:41   ` [Buildroot] [PATCH v4 07/21] qt5base: add rPi EGL glue code Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 08/21] qt5base: install bundled fonts to target Thomas Petazzoni
2013-03-19 21:43   ` Peter Korsgaard
2013-03-19 22:07     ` Floris Bos
2013-03-19 19:29 ` [Buildroot] [PATCH v4 09/21] qt5: factor Qt5 version Thomas Petazzoni
2013-03-24 13:43   ` Peter Korsgaard
2013-03-19 19:29 ` [Buildroot] [PATCH v4 10/21] qt5/qt5svg: new package Thomas Petazzoni
2013-03-24 13:46   ` Peter Korsgaard
2013-03-27 17:26     ` Arnout Vandecappelle
2013-03-19 19:29 ` [Buildroot] [PATCH v4 11/21] qt5/qt5script: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 12/21] qt5/qt5imageformats: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 13/21] qt5/qt5xmlpatterns: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 14/21] qt5/qt5jsbackend: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 15/21] qt5/qt5declarative: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 16/21] qt5/qt5graphicaleffects: " Thomas Petazzoni
2013-03-24 18:52   ` Samuel Martin
2013-03-19 19:29 ` [Buildroot] [PATCH v4 17/21] qt5/qt5multimedia: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 18/21] qt5/qt5quick1: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 19/21] qt5/qt5webkit: " Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 20/21] qt5webkit: add EGL dir to includepath Thomas Petazzoni
2013-03-19 19:29 ` [Buildroot] [PATCH v4 21/21] qt5: disallow the selection of Qt4 and Qt5 Thomas Petazzoni
2013-03-27 17:27   ` Arnout Vandecappelle

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=1363721394-14973-8-git-send-email-thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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.