aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi
diff options
context:
space:
mode:
authorNaoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>2017-12-12 10:52:01 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-12-18 22:40:22 +0000
commit289f6c9d3ce5778fbef43ea00c9308b7d86f97d1 (patch)
tree8be476f559dc4031c77f4fe0750d9e99f7e7394a /recipes-demo-hmi
parent034113162aadc8490c376feb060053a8a4099520 (diff)
Add D-Bus configuration of navigation service
Add the D-Bus configuration provided by the navigation service. Currently navigation app provides API, but this is transient measure. In the future this configuration will be moved to the navigation service. Change-Id: I2eeb13cf3e792c00474cc7999078ec6ae6c5a137 Signed-off-by: Naoto Yamaguchi <i33399_YAMAGUCHI@aisin-aw.co.jp>
Diffstat (limited to 'recipes-demo-hmi')
-rw-r--r--recipes-demo-hmi/navigation/navigation/org.agl.naviapi.conf15
-rw-r--r--recipes-demo-hmi/navigation/navigation_git.bb6
2 files changed, 20 insertions, 1 deletions
diff --git a/recipes-demo-hmi/navigation/navigation/org.agl.naviapi.conf b/recipes-demo-hmi/navigation/navigation/org.agl.naviapi.conf
new file mode 100644
index 000000000..7f4d85f0d
--- /dev/null
+++ b/recipes-demo-hmi/navigation/navigation/org.agl.naviapi.conf
@@ -0,0 +1,15 @@
+<!DOCTYPE busconfig PUBLIC
+"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <policy context="default">
+ <!-- Allow everyone to talk to main service. We'll later add an agent to
+ only share the location if user allows it. -->
+ <allow send_interface="org.agl.naviapi"/>
+ </policy>
+
+ <policy user="root">
+ <!-- Allow root to own the name on the bus -->
+ <allow own="org.agl.naviapi"/>
+ </policy>
+</busconfig>
diff --git a/recipes-demo-hmi/navigation/navigation_git.bb b/recipes-demo-hmi/navigation/navigation_git.bb
index 822405e3d..9215e5554 100644
--- a/recipes-demo-hmi/navigation/navigation_git.bb
+++ b/recipes-demo-hmi/navigation/navigation_git.bb
@@ -18,10 +18,11 @@ RDEPENDS_${PN} = " flite openjtalk glib-2.0 freetype sqlite3 wayland zlib expat
RDEPENDS_${PN} += " agl-service-navigation "
-SRCREV="acbb9ea0678bd2f21f268000332a4786e87fb3f6"
+SRCREV="051e504db0e30d3160d63ef67b0225227e5da94d"
SRC_URI="git://github.com/AGLExport/gpsnavi.git;branch=agl \
file://download_mapdata_jp.sh \
file://download_mapdata_uk.sh \
+ file://org.agl.naviapi.conf \
"
RPROVIDES_${PN} = "virtual/navigation"
@@ -40,6 +41,9 @@ do_install_append() {
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}/etc/dbus-1/session.d/
+ install -m 0644 ${WORKDIR}/org.agl.naviapi.conf ${D}/etc/dbus-1/session.d/
+
install -d ${D}/var/mapdata
}