diff options
author | 2017-01-20 00:40:08 +0900 | |
---|---|---|
committer | 2017-01-24 00:12:15 +0900 | |
commit | 172e617762aa1acb951e3543ae646451b2b87026 (patch) | |
tree | 26c1d7bbf49a69b6221f91a46058a4a2967ad599 /recipes-demo-hmi/navigation/navigation | |
parent | f41fbb27a91fa554b5425c0c32dcbc1cf4612182 (diff) |
Navigation update for AMM 2017 demos
This patch includes the following correspondence.
Partial fix : Fix SPEC-364 SDK build issue.
For AMM demo : Enable japanese guide voice.
Adding JP map download script.
Change-Id: I4c58a6e4630460ff2f30abb73519aaaab0e2b7b5
Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
Diffstat (limited to 'recipes-demo-hmi/navigation/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 |
3 files changed, 61 insertions, 9 deletions
diff --git a/recipes-demo-hmi/navigation/navigation/config.xml b/recipes-demo-hmi/navigation/navigation/config.xml deleted file mode 100755 index 954974db..00000000 --- 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 00000000..15120f89 --- /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 d1f9a796..d1f9a796 100755 --- a/recipes-demo-hmi/navigation/navigation/download_mapdata.sh +++ b/recipes-demo-hmi/navigation/navigation/download_mapdata_uk.sh |