diff options
Diffstat (limited to 'recipes-demo-hmi/navigation')
-rwxr-xr-x | recipes-demo-hmi/navigation/navigation/config.xml | 9 | ||||
-rwxr-xr-x | recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh | 61 | ||||
-rwxr-xr-x | recipes-demo-hmi/navigation/navigation/download_mapdata_uk.sh (renamed from recipes-demo-hmi/navigation/navigation/download_mapdata.sh) | 0 | ||||
-rwxr-xr-x | recipes-demo-hmi/navigation/navigation_0.0.7.bb | 16 | ||||
-rwxr-xr-x | recipes-demo-hmi/navigation/navigation_git.bb | 25 |
5 files changed, 74 insertions, 37 deletions
diff --git a/recipes-demo-hmi/navigation/navigation/config.xml b/recipes-demo-hmi/navigation/navigation/config.xml deleted file mode 100755 index 954974db2..000000000 --- a/recipes-demo-hmi/navigation/navigation/config.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<widget xmlns="http://www.w3.org/ns/widgets" id="navigation" version="0.1"> - <name>Navigation</name> - <icon src="navigation.png"/> - <content src="navi" type="application/x-executable"/> - <description>NAVIGATION App</description> - <author>AISIN AW</author> - <license>GPL</license> -</widget> diff --git a/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh b/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh new file mode 100755 index 000000000..15120f89e --- /dev/null +++ b/recipes-demo-hmi/navigation/navigation/download_mapdata_jp.sh @@ -0,0 +1,61 @@ +#!/bin/sh +# +# AGL Navigation mapdata download scripts +# + +#-------------------------------------------------------------- +help() +{ +bn=`basename $0` +cat << EOF +usage +host: sudo $bn 'target_rootfs_path/' +target : $bn / +EOF + +} +#-check para------------------------------------------------------- +shift `expr $OPTIND - 1` + +if [ $# != 1 ]; then + help + exit +fi + +rootfs=$1 + +#---------------------------------------------------------------- + +# check the if root? ------------------------------ +userid=`id -u` +if [ $userid -ne "0" ]; then + echo "you're not root? run with sudo" + exit +fi + +if [ ! -e $1 ]; then + echo "rootfs:$1 not found" + exit +fi + +if [ ! -f $HOME/navi_data.tar.gz ]; then + echo "no map data" + echo "start downloading..." + wget --directory-prefix=$HOME http://agl.wismobi.com/data/japan_TR9/navi_data.tar.gz +else + echo "use downloaded map data" +fi + +mapdatadir=$rootfs/var/mapdata + +if [ ! -d $mapdatadir ]; then + echo "map data directory does not exist" + echo "create a directory" $mapdatadir + mkdir -p $mapdatadir +else + echo "map data directory exists" +fi + +tar xvzf $HOME/navi_data.tar.gz -C $mapdatadir +sync +echo "done.." diff --git a/recipes-demo-hmi/navigation/navigation/download_mapdata.sh b/recipes-demo-hmi/navigation/navigation/download_mapdata_uk.sh index d1f9a796b..d1f9a796b 100755 --- a/recipes-demo-hmi/navigation/navigation/download_mapdata.sh +++ b/recipes-demo-hmi/navigation/navigation/download_mapdata_uk.sh diff --git a/recipes-demo-hmi/navigation/navigation_0.0.7.bb b/recipes-demo-hmi/navigation/navigation_0.0.7.bb deleted file mode 100755 index 8f7e7a213..000000000 --- a/recipes-demo-hmi/navigation/navigation_0.0.7.bb +++ /dev/null @@ -1,16 +0,0 @@ -LICENSE="GPLv2" -LIC_FILES_CHKSUM="file://LICENSE;md5=3595e9c703a847d990664d2b396a9df0 \ - file://COPYING;md5=947b2d60ca3872e172034438e9801200" - -DEPENDS = "glib-2.0 freetype sqlite3 wayland zlib expat openssl virtual/libgles2 virtual/libgl virtual/egl wayland" -#RDEPENDS_${PN} = "glib-2.0 freetype sqlite3 wayland zlib expat openssl libegl libwayland-egl" - -SRCREV="v0.0.7" -SRC_URI="git://github.com/gpsnavi/gpsnavi.git" - -# To avoid C++ library link failure -SECURITY_CFLAGS = "" - -S = "${WORKDIR}/git" - -inherit autotools pkgconfig diff --git a/recipes-demo-hmi/navigation/navigation_git.bb b/recipes-demo-hmi/navigation/navigation_git.bb index b497e9c54..2bdd1cc00 100755 --- a/recipes-demo-hmi/navigation/navigation_git.bb +++ b/recipes-demo-hmi/navigation/navigation_git.bb @@ -1,20 +1,25 @@ +SUMMARY = "AGL Reference Navigation application." +DESCRIPTION = "This application provides the function of Navigation to AGL. " +HOMEPAGE = "http://agl.wismobi.com/" +SECTION = "apps" + LICENSE="GPLv2" LIC_FILES_CHKSUM="file://LICENSE;md5=3595e9c703a847d990664d2b396a9df0 \ file://COPYING;md5=947b2d60ca3872e172034438e9801200" DEPENDS = " \ glib-2.0 freetype sqlite3 wayland zlib expat openssl virtual/libgles2 virtual/libgl virtual/egl \ - wayland libdbus-c++ \ + wayland libdbus-c++ af-main \ " RDEPENDS_${PN} = " flite openjtalk " -SRCREV="1b7218335b5b7a5312e3611138c70c49a27a3b9f" -SRC_URI="git://github.com/AGLExport/gpsnavi.git \ +SRCREV="3dc643168cfa8ea0028b53770351a1fa608265c1" +SRC_URI="git://github.com/AGLExport/gpsnavi.git;branch=agl \ file://flite.in \ file://jtalk.in \ - file://config.xml \ - file://download_mapdata.sh \ + file://download_mapdata_jp.sh \ + file://download_mapdata_uk.sh \ " # To avoid C++ library link failure @@ -30,14 +35,10 @@ do_compile_prepend() { } do_install_append() { - mkdir -p ${WORKDIR}/widget - install -m 0644 ${WORKDIR}/config.xml ${WORKDIR}/widget - install -m 0755 ${D}/usr/bin/navi ${WORKDIR}/widget - zip -ju ${WORKDIR}/widget/navigation.wgt ${WORKDIR}/widget/navi ${WORKDIR}/widget/config.xml - install -d ${D}/usr/AGL/apps - install -m 0644 ${WORKDIR}/widget/navigation.wgt ${D}/usr/AGL/apps/ - install -m 0755 ${WORKDIR}/download_mapdata.sh ${D}/usr/AGL/apps/ + install -m 0644 ${B}/navigation.wgt ${D}/usr/AGL/apps/ + install -m 0755 ${WORKDIR}/download_mapdata_jp.sh ${D}/usr/AGL/apps/ + install -m 0755 ${WORKDIR}/download_mapdata_uk.sh ${D}/usr/AGL/apps/ install -d ${D}/var/mapdata } |