mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>,
	Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] qt6: allow selecting linuxfb platform
Date: Wed,  5 Jun 2024 22:41:35 +0200	[thread overview]
Message-ID: <20240605204135.270043-1-rhi@pengutronix.de> (raw)

The linuxfb platform is useful for systems without wayland or graphics
acceleration hardware.

Co-developed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/qt6.in   | 11 +++++++++++
 rules/qt6.make |  3 ++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/rules/qt6.in b/rules/qt6.in
index 36c2bddf160d..d50115f42b01 100644
--- a/rules/qt6.in
+++ b/rules/qt6.in
@@ -166,6 +166,7 @@ comment "supported plugins"
 config QT6_PLATFORM_DEFAULT
 	string
 	default "eglfs"		if QT6_PLATFORM_DEFAULT_EGLFS
+	default "linuxfb"	if QT6_PLATFORM_DEFAULT_LINUXFB
 	default "wayland"	if QT6_PLATFORM_DEFAULT_WAYLAND
 
 config QT6_PLATFORM_EGLFS
@@ -173,6 +174,10 @@ config QT6_PLATFORM_EGLFS
 	prompt "eglfs"
 	select QT6_OPENGL
 
+config QT6_PLATFORM_LINUXFB
+	bool
+	prompt "linuxfb"
+
 comment "default plugin"
 
 choice
@@ -185,6 +190,7 @@ config QT6_PLATFORM_DEFAULT_MISSING
 	bool
 	prompt "--nothing--"
 	depends on !QT6_PLATFORM_EGLFS
+	depends on !QT6_PLATFORM_LINUXFB
 	depends on !QT6_MODULE_QTWAYLAND
 
 config QT6_PLATFORM_DEFAULT_EGLFS
@@ -192,6 +198,11 @@ config QT6_PLATFORM_DEFAULT_EGLFS
 	depends on QT6_PLATFORM_EGLFS
 	prompt "eglfs"
 
+config QT6_PLATFORM_DEFAULT_LINUXFB
+	bool
+	depends on QT6_PLATFORM_LINUXFB
+	prompt "linuxfb"
+
 config QT6_PLATFORM_DEFAULT_WAYLAND
 	bool
 	depends on QT6_MODULE_QTWAYLAND
diff --git a/rules/qt6.make b/rules/qt6.make
index fa1f4996925b..3ebd2fef15d5 100644
--- a/rules/qt6.make
+++ b/rules/qt6.make
@@ -251,7 +251,7 @@ QT6_CONF_OPT += \
 	-DFEATURE_library=ON \
 	-DFEATURE_libudev=$(call ptx/onoff,PTXCONF_QT6_LIBUDEV) \
 	-DFEATURE_linux_netlink=ON \
-	-DFEATURE_linuxfb=OFF \
+	-DFEATURE_linuxfb=$(call ptx/onoff,PTXCONF_QT6_PLATFORM_LINUXFB) \
 	-DFEATURE_localserver=ON \
 	-DFEATURE_lttng=OFF \
 	-DFEATURE_macdeployqt=OFF \
@@ -973,6 +973,7 @@ QT6_PLUGINS-$(PTXCONF_QT6_PLATFORM_EGLFS)			+= platforms/libqeglfs
 QT6_PLUGINS-$(PTXCONF_QT6_MODULE_QTBASE_GUI)			+= platforms/libqminimal
 QT6_PLUGINS-$(PTXCONF_QT6_PLATFORM_EGLFS)			+= platforms/libqminimalegl
 QT6_PLUGINS-$(PTXCONF_QT6_MODULE_QTBASE_GUI)			+= platforms/libqoffscreen
+QT6_PLUGINS-$(PTXCONF_QT6_PLATFORM_LINUXFB)			+= platforms/libqlinuxfb
 QT6_PLUGINS-$(PTXCONF_QT6_PLATFORM_EGLFS)			+= egldeviceintegrations/libqeglfs-kms-integration
 QT6_PLUGINS-$(PTXCONF_QT6_MODULE_QTBASE_SQL_MYSQL)		+= sqldrivers/libqsqlmysql
 QT6_PLUGINS-$(PTXCONF_QT6_MODULE_QTBASE_SQL_SQLITE)		+= sqldrivers/libqsqlite
-- 
2.39.2




             reply	other threads:[~2024-06-05 20:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-05 20:41 Roland Hieber [this message]
2024-06-05 20:41 ` [ptxdist] [PATCH 2/2] qt6: install examples if selected Roland Hieber
2024-06-15 14:58 ` [ptxdist] [APPLIED] qt6: allow selecting linuxfb platform Michael Olbrich

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=20240605204135.270043-1-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=r.czerwinski@pengutronix.de \
    /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