core/pkg-infra: Add per-package support in qmake infra
authorAndreas Naumann <anaumann@ultratronik.de>
Mon, 17 Feb 2020 21:23:41 +0000 (22:23 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 1 Jul 2020 17:39:56 +0000 (19:39 +0200)
commit60e3a09693703f0c923322d39ce1210baf154983
tree9810841a134272b9196c070cfeb695886f4eec52
parentc3294956d5d1edd3d98bfdd06bac0d04d998a016
core/pkg-infra: Add per-package support in qmake infra

Qmake configured packages will, by default, use the absolute HostPrefix/Sysroot
pathes set during configuration/building of qt5base for their install
destinations.
For the per-package host/staging infrastructure, this causes non-qt5base
packages to litter the qt5base folders. In addition, buildroots target-install
step subsequently fails because the respective files are missing from the
per-package sysroot of the package itself.

Fortunately, qmake's built-in pathes can be overridden by placing a custom
qt.conf next to the qmake binary. This is already used to facilitate SDK
relocation. So for per-package path manipulation we can reuse that method, but
need to change the host/sysroot values according to each per-package
path.

Signed-off-by: Andreas Naumann <anaumann@ultratronik.de>
Reviewed-by: Yann E. MORIN <yann.morin.1998@free.fr>
[yann.morin.1998@free.fr: drop useless 'rm -f' of generated file]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/pkg-qmake.mk
package/qt5/qt5.mk
package/qt5/qt5base/qt5base.mk