diff options
author | Ilya Yanok <yanok@emcraft.com> | 2011-05-09 23:12:55 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-10 09:57:09 +0100 |
commit | f5cf43596be04343e7f1b8186f30538c79327342 (patch) | |
tree | 68a19b673d48c0091ae706e5b8be605a59ca3972 | |
parent | 2277c3054a7f78aa45945aeba1bbb7ff86b4516a (diff) | |
download | poky-f5cf43596be04343e7f1b8186f30538c79327342.tar.gz |
toolchain-qte: include cross-compiler and fix env script
This patch fixes the meta-toolchain-qte recipe:
1. cross-compiler added to the TOOLCHAIN_HOST_TASK.
2. Corrected paths in the environment script.
3. TOOLCHAIN_OUTPUTNAME used instead of SDK_SUFFIX.
(From OE-Core rev: 2b4971128a66eb0efdc8663018710383041c0e11)
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-qt/meta/meta-toolchain-qte.bb | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/meta/recipes-qt/meta/meta-toolchain-qte.bb b/meta/recipes-qt/meta/meta-toolchain-qte.bb index da0dda77c9..72fa702c77 100644 --- a/meta/recipes-qt/meta/meta-toolchain-qte.bb +++ b/meta/recipes-qt/meta/meta-toolchain-qte.bb | |||
@@ -1,26 +1,27 @@ | |||
1 | # Qt Embedded toolchain | 1 | # Qt Embedded toolchain |
2 | PR = "r5" | 2 | PR = "r5" |
3 | TOOLCHAIN_HOST_TASK = "task-qte-toolchain-host" | 3 | TOOLCHAIN_HOST_TASK = "task-qte-toolchain-host task-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
4 | TOOLCHAIN_TARGET_TASK = "task-qte-toolchain-target" | 4 | TOOLCHAIN_TARGET_TASK = "task-qte-toolchain-target" |
5 | TOOLCHAIN_OUTPUTNAME = "${SDK_NAME}-toolchain-qte-${DISTRO_VERSION}" | ||
5 | 6 | ||
6 | require recipes-core/meta/meta-toolchain.bb | 7 | require recipes-core/meta/meta-toolchain.bb |
7 | SDK_SUFFIX = "toolchain-qte" | ||
8 | 8 | ||
9 | QT_DIR_NAME = "qtopia" | 9 | QT_DIR_NAME = "qtopia" |
10 | QT_TOOLS_PREFIX = "${SDKPATHNATIVE}${bindir_nativesdk}" | ||
10 | 11 | ||
11 | toolchain_create_sdk_env_script_append() { | 12 | toolchain_create_sdk_env_script_append() { |
12 | echo 'export OE_QMAKE_CC=${TARGET_SYS}-gcc' >> $script | 13 | echo 'export OE_QMAKE_CC=${TARGET_PREFIX}gcc' >> $script |
13 | echo 'export OE_QMAKE_CXX=${TARGET_SYS}-g++' >> $script | 14 | echo 'export OE_QMAKE_CXX=${TARGET_PREFIX}g++' >> $script |
14 | echo 'export OE_QMAKE_LINK=${TARGET_SYS}-g++' >> $script | 15 | echo 'export OE_QMAKE_LINK=${TARGET_PREFIX}g++' >> $script |
15 | echo 'export OE_QMAKE_AR=${TARGET_SYS}-ar' >> $script | 16 | echo 'export OE_QMAKE_AR=${TARGET_PREFIX}ar' >> $script |
16 | echo 'export OE_QMAKE_LIBDIR_QT=${SDKPATH}/${TARGET_SYS}/${libdir}' >> $script | 17 | echo 'export OE_QMAKE_LIBDIR_QT=${SDKTARGETSYSROOT}/${libdir}' >> $script |
17 | echo 'export OE_QMAKE_INCDIR_QT=${SDKPATH}/${TARGET_SYS}/${includedir}/${QT_DIR_NAME}' >> $script | 18 | echo 'export OE_QMAKE_INCDIR_QT=${SDKTARGETSYSROOT}/${includedir}/${QT_DIR_NAME}' >> $script |
18 | echo 'export OE_QMAKE_MOC=${SDKPATH}/bin/moc4' >> $script | 19 | echo 'export OE_QMAKE_MOC=${QT_TOOLS_PREFIX}/moc4' >> $script |
19 | echo 'export OE_QMAKE_UIC=${SDKPATH}/bin/uic4' >> $script | 20 | echo 'export OE_QMAKE_UIC=${QT_TOOLS_PREFIX}/uic4' >> $script |
20 | echo 'export OE_QMAKE_UIC3=${SDKPATH}/bin/uic34' >> $script | 21 | echo 'export OE_QMAKE_UIC3=${QT_TOOLS_PREFIX}/uic34' >> $script |
21 | echo 'export OE_QMAKE_RCC=${SDKPATH}/bin/rcc4' >> $script | 22 | echo 'export OE_QMAKE_RCC=${QT_TOOLS_PREFIX}/rcc4' >> $script |
22 | echo 'export OE_QMAKE_QDBUSCPP2XML=${SDKPATH}/bin/qdbuscpp2xml4' >> $script | 23 | echo 'export OE_QMAKE_QDBUSCPP2XML=${QT_TOOLS_PREFIX}/qdbuscpp2xml4' >> $script |
23 | echo 'export OE_QMAKE_QDBUSXML2CPP=${SDKPATH}/bin/qdbusxml2cpp4' >> $script | 24 | echo 'export OE_QMAKE_QDBUSXML2CPP=${QT_TOOLS_PREFIX}/qdbusxml2cpp4' >> $script |
24 | echo 'export OE_QMAKE_QT_CONFIG=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script | 25 | echo 'export OE_QMAKE_QT_CONFIG=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script |
25 | echo 'export QMAKESPEC=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script | 26 | echo 'export QMAKESPEC=${SDKTARGETSYSROOT}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script |
26 | } | 27 | } |