summaryrefslogtreecommitdiff
path: root/recipes/meta
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihar.hrachyshka@gmail.com>2009-06-03 05:37:16 +0000
committerDenys Dmytriyenko <denis@denix.org>2009-06-09 23:21:42 -0400
commite58ef17bd0c97439a6cb819ab448dbe22da1cfc9 (patch)
treec4368bbddca1cdfb7d6a7b4ec40809e7f2de9430 /recipes/meta
parent399cbecbebdd106797306e17a5e4dd5af08d55c8 (diff)
meta-toolchain-qte: initial qt embedded toolchain version
This version doesn't include qt tools yet so it is not ready to create crossed qt applications. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> Acked-by: Tom Rini <trini@embeddedalley.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
Diffstat (limited to 'recipes/meta')
-rw-r--r--recipes/meta/meta-toolchain-qte.bb25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/meta/meta-toolchain-qte.bb b/recipes/meta/meta-toolchain-qte.bb
new file mode 100644
index 0000000000..49ed35ee0f
--- /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 .
+}