diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-10-09 18:53:14 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-10 10:39:12 +0100 |
commit | e7b9e1df19062cfbcd72c90295829424cae6fbed (patch) | |
tree | 21a8c3188b3f37eb1d9fdc3ff2c7aa27c1bc06f2 | |
parent | 457291f2ca084d1f43c0cca2175b448a22761887 (diff) | |
download | openembedded-core-e7b9e1df19062cfbcd72c90295829424cae6fbed.tar.gz openembedded-core-e7b9e1df19062cfbcd72c90295829424cae6fbed.tar.bz2 openembedded-core-e7b9e1df19062cfbcd72c90295829424cae6fbed.zip |
meta-toolchain-qt: Fix environment population
The generation of the environment has change since the change to use a
meta-environment canadian package in the OE-Core, the SDK environment
setting has been broken. This uses the new subscript environment to
fix it.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-qt/meta/meta-toolchain-qt.inc | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/meta/recipes-qt/meta/meta-toolchain-qt.inc b/meta/recipes-qt/meta/meta-toolchain-qt.inc index 53e5322811..7e75d93b14 100644 --- a/meta/recipes-qt/meta/meta-toolchain-qt.inc +++ b/meta/recipes-qt/meta/meta-toolchain-qt.inc @@ -4,29 +4,32 @@ TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-${QTNAME}-${DISTRO_VERSION}" require recipes-core/meta/meta-toolchain.bb -QT_TOOLS_PREFIX = "${SDKPATHNATIVE}${bindir_nativesdk}" +QT_TOOLS_PREFIX = "$OECORE_NATIVE_SYSROOT${bindir_nativesdk}" -toolchain_create_sdk_env_script_append() { - echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script +create_sdk_files_append() { + mkdir -p ${SDK_OUTPUT}${SDKPATHNATIVE}/environment-setup.d/ + script=${SDK_OUTPUT}${SDKPATHNATIVE}/environment-setup.d/${QT_DIR_NAME}.sh + + echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' > $script echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script echo 'export OE_QMAKE_CC=$CC' >> $script echo 'export OE_QMAKE_CXX=$CXX' >> $script echo 'export OE_QMAKE_LINK=$CXX' >> $script echo 'export OE_QMAKE_AR=$AR' >> $script - echo 'export OE_QMAKE_LIBDIR_QT=${SDKTARGETSYSROOT}/${libdir}' >> $script - echo 'export OE_QMAKE_INCDIR_QT=${SDKTARGETSYSROOT}/${includedir}/${QT_DIR_NAME}' >> $script + echo 'export OE_QMAKE_LIBDIR_QT=$OECORE_TARGET_SYSROOT${libdir}' >> $script + echo 'export OE_QMAKE_INCDIR_QT=$OECORE_TARGET_SYSROOT${includedir}/${QT_DIR_NAME}' >> $script echo 'export OE_QMAKE_MOC=${QT_TOOLS_PREFIX}/moc4' >> $script echo 'export OE_QMAKE_UIC=${QT_TOOLS_PREFIX}/uic4' >> $script echo 'export OE_QMAKE_UIC3=${QT_TOOLS_PREFIX}/uic34' >> $script echo 'export OE_QMAKE_RCC=${QT_TOOLS_PREFIX}/rcc4' >> $script echo 'export OE_QMAKE_QDBUSCPP2XML=${QT_TOOLS_PREFIX}/qdbuscpp2xml4' >> $script echo 'export OE_QMAKE_QDBUSXML2CPP=${QT_TOOLS_PREFIX}/qdbusxml2cpp4' >> $script - echo 'export OE_QMAKE_QT_CONFIG=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script - echo 'export QMAKESPEC=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script - echo 'export QT_CONF_PATH=${SDKPATHNATIVE}/${sysconfdir}/qt.conf' >> $script + echo 'export OE_QMAKE_QT_CONFIG=$OECORE_TARGET_SYSROOT${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script + echo 'export QMAKESPEC=$OECORE_TARGET_SYSROOT${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script + echo 'export QT_CONF_PATH=$OECORE_NATIVE_SYSROOT${sysconfdir}/qt.conf' >> $script # make a symbolic link to mkspecs for compatibility with Qt SDK # and Qt Creator - (cd ${SDK_OUTPUT}/${QT_TOOLS_PREFIX}/..; ln -s ${SDKTARGETSYSROOT}/usr/share/${QT_DIR_NAME}/mkspecs mkspecs;) + (cd ${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/..; ln -s ${SDKTARGETSYSROOT}/usr/share/${QT_DIR_NAME}/mkspecs mkspecs;) } |