summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/navigation-maps.inc
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2018-12-04 17:31:48 -0500
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-12-20 21:10:18 +0000
commit25c0b44e2e741b348e424249d82e29b9578d8d78 (patch)
tree5b227de6c94bd265aadf75d071679586bb9d58dc /recipes-demo-hmi/navigation/navigation-maps.inc
parentdac8f03df4a2abaa8e588fa4487e731bc0253a08 (diff)
Add agl-demo-preload feature
Add a feature to preload the maps for the navigation app and the API key for the POI app. The intent is to allow building an image that works "out of the box" without manually installing things. The selection of UK or Japan maps can be controlled by setting the variable DEMO_MAPS_LOCALE to either "uk" (default) or "jp" in local.conf or site.conf. The POI API key should be set in one of those locations with the variable POIAPP_API_KEY (default value is an empty string). Change-Id: I25537935ddac740090f2121d0a83305c746185b0 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'recipes-demo-hmi/navigation/navigation-maps.inc')
-rwxr-xr-xrecipes-demo-hmi/navigation/navigation-maps.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes-demo-hmi/navigation/navigation-maps.inc b/recipes-demo-hmi/navigation/navigation-maps.inc
new file mode 100755
index 000000000..49b7ab496
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation-maps.inc
@@ -0,0 +1,14 @@
+DEPENDS = "tar-native"
+
+SRC_URI_append = ";downloadfilename=${BP}.tar.gz;unpack=0"
+
+do_compile[noexec] = "1"
+
+do_install () {
+ install -d ${D}${localstatedir}/mapdata
+ tar -C ${D}${localstatedir}/mapdata --no-same-owner -xf ${WORKDIR}/${BP}.tar.gz
+}
+
+FILES_${PN} += "${localstatedir}/mapdata/*"
+
+RDEPENDS_${PN} += "navigation"