[meta-freescale] [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo
Leonardo Sandoval
leonardo.sandoval at freescale.com
Fri Mar 1 08:13:07 PST 2013
Introduces a new recipe to construct the QT Automotive Quick IVI demo.
Tested on i.MX6 Sabre SD with a fsl-image-gui image. Notes: 1) Currently
there is no icon on the main desktop, so execution of the demo
has to be either from the console (DISPLAY=0:0 /usr/bin/ConnectedCarIVI)
or from File Manager; another patch is needed to introduced the icon
2) All demo filenames containing spaces were renamed, spaces were replaced
by undescores, so not all icons/images will be shown
on the demo; another patch is needed to correct this issue.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval at freescale.com>
---
.../packagegroup/packagegroup-qt-in-use-demos.bb | 3 +-
recipes-qt/qt-in-use/qt-in-automotive-common.inc | 22 ++++++++++++++++++++
.../qt-in-use/qt-in-automotive-quick-ivi_git.bb | 20 ++++++++++++++++++
3 files changed, 44 insertions(+), 1 deletions(-)
create mode 100644 recipes-qt/qt-in-use/qt-in-automotive-common.inc
create mode 100644 recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
diff --git a/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb b/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
index 3c84b00..9cf7e7d 100644
--- a/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
+++ b/recipes-qt/packagegroup/packagegroup-qt-in-use-demos.bb
@@ -10,4 +10,5 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
inherit packagegroup
RDEPENDS_${PN} = " \
- qt-in-industrial-embedded-smarthome"
+ qt-in-industrial-embedded-smarthome \
+ qt-in-automotive-quick-ivi"
diff --git a/recipes-qt/qt-in-use/qt-in-automotive-common.inc b/recipes-qt/qt-in-use/qt-in-automotive-common.inc
new file mode 100644
index 0000000..a996ae7
--- /dev/null
+++ b/recipes-qt/qt-in-use/qt-in-automotive-common.inc
@@ -0,0 +1,22 @@
+DESCRIPTION = "Demos and enhancements from the automotive sector"
+
+inherit autotools
+
+PV = "0.0+gitr${SRCPV}"
+SRCREV = "6c8bacc929cf7549de8962ae6462a236f75571d0"
+SRC_URI = "git://gitorious.org/qt-in-use/qt-in-automotive.git"
+
+PR = "r0"
+
+S = "${WORKDIR}/git/${DEMO}"
+
+do_configure_prepend() {
+ # fix qmake ugly deployment support
+ find ${S} -type f -exec sed -i 's,/usr/local,/usr,g' '{}' ';'
+
+}
+
+RDEPENDS_${PN} += " \
+ ${QT_BASE_NAME}-qml-plugins \
+ ${QT_BASE_NAME}-plugin-imageformat-svg \
+"
diff --git a/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb b/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
new file mode 100644
index 0000000..98de439
--- /dev/null
+++ b/recipes-qt/qt-in-use/qt-in-automotive-quick-ivi_git.bb
@@ -0,0 +1,20 @@
+require qt-in-automotive-common.inc
+
+LICENSE = "TPLA"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f7f3422e093a2b8e49cb5efac1b7ab47"
+
+DEMO = "qt-quick-ivi-demo"
+
+do_install_append () {
+ # Ugly hack to replace spaces on data files.
+ # if not done, bitbake hangs on populate_sysroot task
+ for i in `find ${D}${datadir} -name '* *' | tr ' ' '~'`; do
+ mv "$(echo $i| tr '~' ' ')" "$(echo $i | tr '~' '_')";
+ done
+}
+
+inherit qt4x11
+
+FILES_${PN} += "${datadir}/ConnectedCarIVI ${datadir}/icons"
+
+EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
--
1.7.4.1
More information about the meta-freescale
mailing list