package/pkg-qmake.mk: Move QT5_QT_CONF_FIXUP to post-prepare hook
authorHerve Codina <herve.codina@bootlin.com>
Tue, 17 Aug 2021 08:39:20 +0000 (10:39 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 28 Aug 2021 20:17:31 +0000 (22:17 +0200)
QT5_QT_CONF_FIXUP tweaks files for per-package directory build.
This is typically the kind of operation expected to be in
post-prepare hook.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pkg-qmake.mk

index a77286fe3aec606a4cba5201c608e336dbece28b..deb033c1d612f1721a72811b0e39fb24ddfd9995 100644 (file)
@@ -56,13 +56,14 @@ $(2)_DEPENDENCIES           += host-perl
 $(2)_PRE_CONFIGURE_HOOKS        += QT_HEADERS_SYNC_HOOK
 endif
 
+$(2)_POST_PREPARE_HOOKS += QT5_QT_CONF_FIXUP
+
 #
 # Configure step. Only define it if not already defined by the package
 # .mk file.
 #
 ifndef $(2)_CONFIGURE_CMDS
 define $(2)_CONFIGURE_CMDS
-       $$(QT5_QT_CONF_FIXUP)
        cd $$($(2)_BUILDDIR) && \
        $$(TARGET_MAKE_ENV) $$($(2)_CONF_ENV) $$(QT5_QMAKE) $$($(2)_CONF_OPTS)
 endef