All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leonardo Sandoval <leonardo.sandoval@freescale.com>
To: <meta-freescale@yoctoproject.org>
Subject: [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo
Date: Fri, 1 Mar 2013 10:13:07 -0600	[thread overview]
Message-ID: <1362154387-3127-1-git-send-email-leonardo.sandoval@freescale.com> (raw)

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

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




             reply	other threads:[~2013-03-01 16:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01 16:13 Leonardo Sandoval [this message]
2013-03-01 16:56 ` [meta-fsl-demos][PATCH] qt-in-automotive-quick-ivi: QT Automotive Quick IVI Demo Otavio Salvador
2013-03-01 17:40   ` Sandoval Gonzalez Leonardo-B42214

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362154387-3127-1-git-send-email-leonardo.sandoval@freescale.com \
    --to=leonardo.sandoval@freescale.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.