aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi
diff options
context:
space:
mode:
authorNaoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>2019-01-27 21:58:33 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-02-21 12:28:39 +0000
commitf01e9c50536c1bed1fe2cbb297f34d3ecf273f0b (patch)
tree678417e6cf217290eefc606a257b66f64fac3fb1 /recipes-demo-hmi
parent6df0016953ddb817021e00aa1784350a762f93de (diff)
Add AGL world wide navigation app config recipe
Configuration file is required for the new OSS navigation. This recipe is a recipe for generating a configuration file. Needs to set access token of mapbox to the environment variable MAPBOX_ACCESS_TOKEN. Change-Id: Ie06313e352e0091debfdb19399390230da64dca5 Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
Diffstat (limited to 'recipes-demo-hmi')
-rwxr-xr-xrecipes-demo-hmi/navigation/ondemandnavi-config/naviconfig.ini8
-rwxr-xr-xrecipes-demo-hmi/navigation/ondemandnavi-config_1.0.bb25
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-demo-hmi/navigation/ondemandnavi-config/naviconfig.ini b/recipes-demo-hmi/navigation/ondemandnavi-config/naviconfig.ini
new file mode 100755
index 000000000..3a4ecc890
--- /dev/null
+++ b/recipes-demo-hmi/navigation/ondemandnavi-config/naviconfig.ini
@@ -0,0 +1,8 @@
+{
+ "mapAccessToken":"MAPBOX_ACCESS_TOKEN",
+ "speed":60,
+ "interval":100,
+ "latitude":36.1363,
+ "longitute":-115.151,
+ "mapStyleUrls":"mapbox://styles/mapbox/dark-v9"
+}
diff --git a/recipes-demo-hmi/navigation/ondemandnavi-config_1.0.bb b/recipes-demo-hmi/navigation/ondemandnavi-config_1.0.bb
new file mode 100755
index 000000000..784341edc
--- /dev/null
+++ b/recipes-demo-hmi/navigation/ondemandnavi-config_1.0.bb
@@ -0,0 +1,25 @@
+SUMMARY = "AGL Reference On Demand Navigation application config."
+DESCRIPTION = "Config file for on-demand navigation app."
+HOMEPAGE = "https://github.com/YoshitoMomiyama/aglqtnavigation.git"
+SECTION = "apps"
+LICENSE = "Proprietary"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
+
+SRC_URI = "file://naviconfig.ini \
+ "
+
+S = "${WORKDIR}"
+
+MAPBOX_ACCESS_TOKEN ?= "Please set mapbox access token"
+
+do_install () {
+ install -d ${D}${sysconfdir}
+ install -m 644 ${WORKDIR}/naviconfig.ini ${D}${sysconfdir}
+ sed -i -e 's/MAPBOX_ACCESS_TOKEN/${MAPBOX_ACCESS_TOKEN}/' ${D}${sysconfdir}/naviconfig.ini
+}
+
+PACKAGE_ARCH = "all"
+
+PACKAGES = "${PN}"
+FILES_${PN} = "/etc/naviconfig.ini"