From: Ihar Hrachyshka <ihar.hrachys...@gmail.com> This version doesn't include qt tools yet so it is not ready to create crossed qt applications.
Signed-off-by: Ihar Hrachyshka <ihar.hrachys...@gmail.com> Acked-by: Tom Rini <tr...@embeddedalley.com> Acked-by: Denys Dmytriyenko <de...@denix.org> --- recipes/meta/meta-toolchain-qte.bb | 25 +++++++++++++++++++++++++ recipes/tasks/task-qte-toolchain-host.bb | 5 +++++ recipes/tasks/task-qte-toolchain-target.bb | 8 ++++++++ 3 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 recipes/meta/meta-toolchain-qte.bb create mode 100644 recipes/tasks/task-qte-toolchain-host.bb create mode 100644 recipes/tasks/task-qte-toolchain-target.bb diff --git a/recipes/meta/meta-toolchain-qte.bb b/recipes/meta/meta-toolchain-qte.bb new file mode 100644 index 0000000..49ed35e --- /dev/null +++ b/recipes/meta/meta-toolchain-qte.bb @@ -0,0 +1,25 @@ +# Qt Embedded toolchain + +require meta-toolchain.bb + +TOOLCHAIN_HOST_TASK = "task-qte-toolchain-host" +TOOLCHAIN_TARGET_TASK = "task-qte-toolchain-target" + +SDK_SUFFIX = "toolchain-qte" +QT_DIR_NAME = "qtopia" + +do_populate_sdk_append() { + script = "${SDK_OUTPUT}/${prefix}/environment-setup" + touch $script + echo 'export OE_QMAKE_CC=${TARGET_SYS}-gcc' >> $script + echo 'export OE_QMAKE_CXX=${TARGET_SYS}-g++' >> $script + echo 'export OE_QMAKE_LINK=${TARGET_SYS}-g++' >> $script + echo 'export OE_QMAKE_LIBDIR_QT=${prefix}/${TARGET_SYS}/${layout_libdir}' >> $script + echo 'export OE_QMAKE_INCDIR_QT=${prefix}/${TARGET_SYS}/${layout_includedir}/${QT_DIR_NAME}' >> $script + echo 'export OE_QMAKE_MOC=${prefix}/${layout_bindir}/moc4' >> $script + echo 'export OE_QMAKE_UIC=${prefix}/${layout_bindir}/uic4' >> $script + + # Repack SDK with new environment-setup + cd ${SDK_OUTPUT} + fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 . +} diff --git a/recipes/tasks/task-qte-toolchain-host.bb b/recipes/tasks/task-qte-toolchain-host.bb new file mode 100644 index 0000000..2a9b652 --- /dev/null +++ b/recipes/tasks/task-qte-toolchain-host.bb @@ -0,0 +1,5 @@ +require task-sdk-host.bb + +DESCRIPTION = "Host packages for Qt Embedded SDK" +LICENSE = "MIT" +ALLOW_EMPTY = "1" diff --git a/recipes/tasks/task-qte-toolchain-target.bb b/recipes/tasks/task-qte-toolchain-target.bb new file mode 100644 index 0000000..82fa5d8 --- /dev/null +++ b/recipes/tasks/task-qte-toolchain-target.bb @@ -0,0 +1,8 @@ +DESCRIPTION = "Target packages for Qt Embedded SDK" +LICENSE = "MIT" +ALLOW_EMPTY = "1" + +RDEPENDS_${PN} += " \ + task-sdk-bare \ + qt4-embedded \ + qt4-embedded-dev" -- 1.5.6.5 _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel