[PATCH openbmc 1/4] Refactor sdbus-service.bbclass

OpenBMC Patches patches at stwcx.xyz
Fri Oct 16 08:53:58 AEDT 2015


From: Patrick Williams <patrick at stwcx.xyz>

sdbus-service.bbclass currently depends on c-daemon.bbclass, which is
used for samples that have their code and makefiles in the repository.
Removed this inherit to make the sdbus-service class more generally
applicable.
---
 meta-phosphor/classes/obmc-phosphor-sdbus-service.bbclass                | 1 -
 .../obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb           | 1 +
 .../common/recipes-phosphor/obmc-phosphor-fan/obmc-phosphor-fand.bb      | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-phosphor/classes/obmc-phosphor-sdbus-service.bbclass b/meta-phosphor/classes/obmc-phosphor-sdbus-service.bbclass
index 8a9853c..bc190d4 100644
--- a/meta-phosphor/classes/obmc-phosphor-sdbus-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-sdbus-service.bbclass
@@ -6,4 +6,3 @@ DEPENDS += "systemd"
 RDEPENDS_${PN} += "libsystemd"
 
 inherit obmc-phosphor-dbus-service
-inherit obmc-phosphor-c-daemon
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb
index 3735007..89fbdb1 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb
@@ -8,3 +8,4 @@ DBUS_SERVICES = " \
         "
 
 inherit obmc-phosphor-sdbus-service
+inherit obmc-phosphor-c-daemon
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-fan/obmc-phosphor-fand.bb b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-fan/obmc-phosphor-fand.bb
index 13c4b70..79e2e6c 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-fan/obmc-phosphor-fand.bb
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-fan/obmc-phosphor-fand.bb
@@ -4,3 +4,4 @@ PR = "r1"
 
 inherit obmc-phosphor-fan-mgmt
 inherit obmc-phosphor-sdbus-service
+inherit obmc-phosphor-c-daemon
-- 
2.6.0




More information about the openbmc mailing list