aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cavallini <m.cavallini@koansoftware.com>2012-01-13 17:51:00 +0100
committerMarco Cavallini <m.cavallini@koansoftware.com>2012-01-13 17:51:00 +0100
commit2b6bc4ac463a4ef7d80ed14c92395a1b4ccb6f2d (patch)
tree9c592484b2092fb21b808bbab7c01241291fd59e
parent5db9a093f295fe0248cdfaba9ec6f55c5b401dfb (diff)
downloadopenembedded-2b6bc4ac463a4ef7d80ed14c92395a1b4ccb6f2d.zip
openembedded-2b6bc4ac463a4ef7d80ed14c92395a1b4ccb6f2d.tar.gz
openembedded-2b6bc4ac463a4ef7d80ed14c92395a1b4ccb6f2d.tar.bz2
recipes/meta/meta-toolchain-qtx11.bb: new Qt X11 toolchain SDK [1/5]
-rw-r--r--recipes/meta/meta-toolchain-qtx11.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/meta/meta-toolchain-qtx11.bb b/recipes/meta/meta-toolchain-qtx11.bb
new file mode 100644
index 0000000..da73d1f
--- /dev/null
+++ b/recipes/meta/meta-toolchain-qtx11.bb
@@ -0,0 +1,35 @@
+# Qt X11 toolchain
+# mckoan - Marco Cavallini
+
+PR = "r1"
+TOOLCHAIN_HOST_TASK = "task-qtx11-toolchain-host"
+TOOLCHAIN_TARGET_TASK = "task-qtx11-toolchain-target"
+
+require meta-toolchain.bb
+SDK_SUFFIX = "toolchain-qtx11"
+SDK_SUFFIX_angstrom = "toolchain-qtx11-${KAEILOS_QT_VERSION}"
+
+QT_DIR_NAME = "qt4"
+
+do_populate_sdk_append() {
+ script="${SDK_OUTPUT}/${SDKPATH}/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_AR=${TARGET_SYS}-ar' >> $script
+ echo 'export OE_QMAKE_LIBDIR_QT=${SDKPATH}/${TARGET_SYS}/${libdir}' >> $script
+ echo 'export OE_QMAKE_INCDIR_QT=${SDKPATH}/${TARGET_SYS}/${includedir}/${QT_DIR_NAME}' >> $script
+ echo 'export OE_QMAKE_MOC=${SDKPATH}/bin/moc4' >> $script
+ echo 'export OE_QMAKE_UIC=${SDKPATH}/bin/uic4' >> $script
+ echo 'export OE_QMAKE_UIC3=${SDKPATH}/bin/uic34' >> $script
+ echo 'export OE_QMAKE_RCC=${SDKPATH}/bin/rcc4' >> $script
+ echo 'export OE_QMAKE_QDBUSCPP2XML=${SDKPATH}/bin/qdbuscpp2xml4' >> $script
+ echo 'export OE_QMAKE_QDBUSXML2CPP=${SDKPATH}/bin/qdbusxml2cpp4' >> $script
+ echo 'export OE_QMAKE_QT_CONFIG=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script
+ echo 'export QMAKESPEC=${SDKPATH}/${TARGET_SYS}/${datadir}/${QT_DIR_NAME}/mkspecs/linux-g++' >> $script
+
+ # Repack SDK with new environment-setup
+ cd ${SDK_OUTPUT}
+ fakeroot tar cfj ${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.tar.bz2 .
+}