]> code.ossystems Code Review - openembedded-core.git/commit
qt4: fix generated sdk
authorEric Bénard <eric@eukrea.com>
Sat, 10 Sep 2011 09:17:57 +0000 (11:17 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:27:05 +0000 (16:27 +0000)
commitd86d55aea57966e1aaffe913c745a648c21f6c24
treeb98f82a1d4e0d0f71c9f8dd4eafce1a072a439e8
parent6af6e862a3f000ada27c8d7f3440821187494421
qt4: fix generated sdk

- qt4-tools-nativesdk : actually the qmake binary which gets installed
comes from the native recipe. This patch fix this problem by launching
configure twice : once to compile qmake using the right toolchain for
nativesdk, and a second time using the native qmake to compile all the
other tools for the nativesdk. Then we install the right qmake.

- mkspec : the link actually created in qt4-tools-nativesdk's
do_install point to nowhere so remove it and generate the link in
meta-toolchain-qte as it's the only place where we have all the variable
to create it.

- toolchain_create_sdk_env_script_append : we need to add OE_QMAKE_CFLAGS,
OE_QMAKE_CXXFLAGS and OE_QMAKE_LDFLAGS else the sdk won't find these
variables that are inserted by qmake in the Makefiles.

- with this patch, oe-core generates a working meta-toolchain-qte which
can compile a small example and is properly recognized by qtcreator (this
brings oe-core's meta-toolchain-qte to oe-dev's functional state).

(From OE-Core rev: 5f6fb92b939147d2d6aa7790a378d4b7cce3ada5)

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-qt/meta/meta-toolchain-qte.bb
meta/recipes-qt/qt4/qt4-tools-nativesdk.inc