devshell: include PATH for qt5 native applications
authorTrevor Woerner <trevor.woerner@linaro.org>
Fri, 20 Sep 2013 03:16:06 +0000 (03:16 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:45:02 +0000 (08:45 -0800)
commitc49c94d76928208b65e37cb6cc97ec36d91ebec2
tree9167d74dbfe1163dbdce5c636c0664292350cf65
parentedd917bdb1c0d8ef2030d72fba51c8796020945b
devshell: include PATH for qt5 native applications

If you perform a "bitbake -c devshell <some qt5 recipe>" and then try "which
qmake" in the devshell, you'll find your host's qmake is found (which is most
likely to be based on qt4) rather than the one that is built as part of
meta-qt5. The reason for this is that the qt5 items are installed to
${STAGING_DIR_NATIVE}/usr/bin/qt5 and not ${STAGING_DIR_NATIVE}/usr/bin. The
reason for the extra "qt5" directory at the end is so that qt4-based items
that are built in OE can live side-by-side with things from meta-qt5 without
interfering with each other.

This patch prepends ${STAGING_DIR_NATIVE}/usr/bin/qt5 to the devshell's PATH
so that the qt5-based native tools which are built as part of meta-qt5 will be
found before the host's.

(From meta-qt5 rev: f4188229f100349f4c88340b62a37d3ebfe51cc5)

Signed-off-by: Trevor Woerner <trevor.woerner@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