Patchwork [meta-fsl-demos] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo

login
register
mail settings
Submitter Leonardo Sandoval
Date March 1, 2013, 4:13 p.m.
Message ID <1362154387-3127-1-git-send-email-leonardo.sandoval@freescale.com>
Download mbox | patch
Permalink /patch/45365/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Leonardo Sandoval - March 1, 2013, 4:13 p.m.
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@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
Otavio Salvador - March 1, 2013, 4:56 p.m.
On Fri, Mar 1, 2013 at 1:13 PM, Leonardo Sandoval
<leonardo.sandoval@freescale.com> wrote:
> 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

Can you postpone this and resend it with the proper icon added?

> 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.

Why this was need? In case it was a workaround we may try to fix the
real problem and avoid patching the code.
Sandoval Gonzalez Leonardo-B42214 - March 1, 2013, 5:40 p.m.
Hi Otavio.

Comments inline


On Fri, Mar 1, 2013 at 1:13 PM, Leonardo Sandoval
<leonardo.sandoval@freescale.com> wrote:
> 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

Can you postpone this and resend it with the proper icon added?

Leonardo. Sure, I do that.


> 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.

Why this was need? In case it was a workaround we may try to fix the
real problem and avoid patching the code.

Leonardo. It was needed because a sub-process (populate_sysroot) execution was hanging, so the bitbake process in turn was hanging. So, the hack was to remove blanks into underscores for some files. I was thinking of adding a build_append function to do the opposite 
(underscore to spaces) but this is also a bit hacky. The real fix  would be in the poky layer, I believe.

Leo

Patch

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}"