[v6,2/6] package/qt6: add QT6_QT_CONF_FIXUP hook

Message ID 20260925064257.1162394-3-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • Support qmake for Qt6
Related show

Commit Message

Dario Binacchi Sept. 25, 2026, 6:42 a.m. UTC
With per-package directories, qt.conf is generated at qt6base install
time and holds the paths of the qt6base per-package host directory.
Add a hook to regenerate it with the paths of the package being built,
as QT5_QT_CONF_FIXUP does for Qt5. The qmake infrastructure will use it.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

Added in v5 (it was part of patch 1 up to v3)

 package/qt6/qt6.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/package/qt6/qt6.mk b/package/qt6/qt6.mk
index 13482c33cc4a..f039ccef30c9 100644
--- a/package/qt6/qt6.mk
+++ b/package/qt6/qt6.mk
@@ -22,5 +22,11 @@  define QT6_INSTALL_QT_CONF
 		$(QT6BASE_PKGDIR)/qt.conf.in > $(HOST_DIR)/bin/qt.conf
 endef
 
+ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y)
+define QT6_QT_CONF_FIXUP
+	$(QT6_INSTALL_QT_CONF)
+endef
+endif
+
 # Variable for other Qt applications to use
 QT6_QMAKE = $(HOST_DIR)/bin/qmake -spec devices/linux-buildroot-g++