From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>,
Christian Hitz <christian@klarinett.li>,
Bernd Kuhls <bernd@kuhls.net>,
Roy Kollen Svendsen <roykollensvendsen@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Baxiche Su <baxiche@gmail.com>
Subject: [Buildroot] [PATCH 2/4] package/qt6/qt6declarative: add an option for the qml tool
Date: Sun, 22 Nov 2026 21:21:52 +0100 [thread overview]
Message-ID: <20261122202154.3606582-3-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20261122202154.3606582-1-angelo.compagnucci@gmail.com>
qt6declarative always builds the qml tool, which runs QML files from
the command line, and installs it as /usr/bin/qml. Most images run
their own Qt application and don't need it.
Add the BR2_PACKAGE_QT6DECLARATIVE_QML_TOOL option. When it is disabled,
the default, remove the tool from the target. This changes the current
behaviour: enable the option to keep /usr/bin/qml.
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
package/qt6/qt6declarative/Config.in | 6 ++++++
package/qt6/qt6declarative/qt6declarative.mk | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/package/qt6/qt6declarative/Config.in b/package/qt6/qt6declarative/Config.in
index e24133c3e5..48b5a5cee2 100644
--- a/package/qt6/qt6declarative/Config.in
+++ b/package/qt6/qt6declarative/Config.in
@@ -14,6 +14,12 @@ config BR2_PACKAGE_QT6DECLARATIVE
if BR2_PACKAGE_QT6DECLARATIVE
+config BR2_PACKAGE_QT6DECLARATIVE_QML_TOOL
+ bool "qml tool"
+ help
+ Install the qml tool, which runs QML files from the command
+ line.
+
config BR2_PACKAGE_QT6DECLARATIVE_QUICK
bool "quick module"
# Enable host test module to ensure that qmltestrunner is built
diff --git a/package/qt6/qt6declarative/qt6declarative.mk b/package/qt6/qt6declarative/qt6declarative.mk
index 02a17a580a..574477c94e 100644
--- a/package/qt6/qt6declarative/qt6declarative.mk
+++ b/package/qt6/qt6declarative/qt6declarative.mk
@@ -59,5 +59,13 @@ endif
endif
+# The qml tool is always built: remove it when not wanted
+ifeq ($(BR2_PACKAGE_QT6DECLARATIVE_QML_TOOL),)
+define QT6DECLARATIVE_REMOVE_QML_TOOL
+ rm -f $(TARGET_DIR)/usr/bin/qml
+endef
+QT6DECLARATIVE_POST_INSTALL_TARGET_HOOKS += QT6DECLARATIVE_REMOVE_QML_TOOL
+endif
+
$(eval $(cmake-package))
$(eval $(host-cmake-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-11-22 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 20:21 [Buildroot] [PATCH 0/4] package/qt6: security bump to 6.12.0, with a runtime test Angelo Compagnucci
2026-11-22 20:21 ` [Buildroot] [PATCH 1/4] package/qt6/qt6positioning: select network for QML Angelo Compagnucci
2026-11-22 20:21 ` Angelo Compagnucci [this message]
2026-11-22 20:21 ` [Buildroot] [PATCH 3/4] support/testing: add qt6 runtime test Angelo Compagnucci
2026-11-22 20:21 ` [Buildroot] [PATCH 4/4] package/qt6: security bump version to 6.12.0 Angelo Compagnucci
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=20261122202154.3606582-3-angelo.compagnucci@gmail.com \
--to=angelo.compagnucci@gmail.com \
--cc=baxiche@gmail.com \
--cc=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--cc=christian@klarinett.li \
--cc=mr.zoltan.gyarmati@gmail.com \
--cc=roykollensvendsen@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/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.