qt5.inc: allow to set the package arch globally
authorAndré Draszik <andre.draszik@linaro.org>
Tue, 3 Dec 2013 15:20:55 +0000 (16:20 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:45:22 +0000 (08:45 -0800)
commit4bfdc385b42f07e0c0ed5b8a4ad8e6d36d241b01
treeee2805647d12f7b42222492c1ab0437d786037e3
parent1d6c843696b43f7721f72e457c0e9cee7ffb63a7
qt5.inc: allow to set the package arch globally

If Qt5 (qtbase) is machine specific, then all packages depending
on qtbase will also be machine specific, because the (initial)
qtbase configuration becomes part of Qt5/qmake, thus affecting
builds of packages built against this specific version of qtbase.

Since it is not feasible to add PACKAGE_ARCH=... to each and every
recipe that is built using qmake and depends on Qt5, we introduce
a new variable, QT_PACKAGES_ARCH, that can be set by the machine
configuration as needed.

We have to be careful though to only change the architecture of the
resulting packages if we're not compiling a 'native' package.

(From meta-qt5 rev: 57709a4ee2213a3c352b9cedce1d4b16a1b35042)

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-qt5/recipes-qt/qt5/qt5.inc