summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
index 029d26093..77fffe0ab 100644
--- a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
@@ -124,6 +124,11 @@ python() {
% (d.getVar('dbus_system_servicesdir', True), search_match))
+ if d.getVar('CLASSOVERRIDE', True) != 'class-target':
+ return
+
+ d.appendVarFlag('do_install', 'postfuncs', ' dbus_do_postinst')
+
for pkg in listvar_to_list(d, 'DBUS_PACKAGES'):
if pkg not in (d.getVar('SYSTEMD_PACKAGES', True) or ''):
set_append(d, 'SYSTEMD_PACKAGES', pkg)
@@ -169,6 +174,4 @@ do_install_append() {
done
}
-do_install[postfuncs] += "dbus_do_postinst"
-
inherit obmc-phosphor-systemd