summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-10-05 01:31:21 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-10-05 21:51:46 +0300
commite9e982486160a1d724bf30f21167d72dfbcb84ce (patch)
tree46b21236e2539613c11eff69b155852f5b2b8ed8
parent9aefc7b924e1f11605cebea7afc95ed72ee14749 (diff)
downloadopenbmc-e9e982486160a1d724bf30f21167d72dfbcb84ce.tar.xz
dbus-dir: change static dbus config directory
Move static dbus config directory to be `/usr/share` instead of `/etc`, which is recommended by `dbus-daemon`. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifd210a262e1c8025dc9e3037c9970ec66ebb085b
-rw-r--r--meta-phosphor/classes/dbus-dir.bbclass2
-rw-r--r--meta-phosphor/recipes-phosphor/dbus/dbus-perms.bb2
2 files changed, 3 insertions, 1 deletions
diff --git a/meta-phosphor/classes/dbus-dir.bbclass b/meta-phosphor/classes/dbus-dir.bbclass
index f66346399..a8ed3e7ec 100644
--- a/meta-phosphor/classes/dbus-dir.bbclass
+++ b/meta-phosphor/classes/dbus-dir.bbclass
@@ -1,2 +1,2 @@
-dbus_system_confdir="${sysconfdir}/dbus-1/system.d/"
+dbus_system_confdir="${datadir}/dbus-1/system.d/"
dbus_system_servicesdir="${datadir}/dbus-1/system-services/"
diff --git a/meta-phosphor/recipes-phosphor/dbus/dbus-perms.bb b/meta-phosphor/recipes-phosphor/dbus/dbus-perms.bb
index ca60b6931..9097222f0 100644
--- a/meta-phosphor/recipes-phosphor/dbus/dbus-perms.bb
+++ b/meta-phosphor/recipes-phosphor/dbus/dbus-perms.bb
@@ -10,6 +10,8 @@ inherit dbus-dir
SRC_URI += "file://org.openbmc.conf"
+FILES:${PN}:append = " ${dbus_system_confdir}"
+
do_install:append() {
install -d ${D}${dbus_system_confdir}
install -m 0644 ${WORKDIR}/org.openbmc.conf \