From 9fb9242725cc5b188393aaf11523bccae2050dfc Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 7 Jul 2016 08:46:51 -0400 Subject: Remove second bus from sdbus example There probably aren't any use cases for this and it is harder to support. Remove to make things slightly less confusing. Signed-off-by: Brad Bishop --- .../files/obmc-phosphor-example-sdbus.c | 8 +------- .../files/org.openbmc.examples.SDBusService.conf | 8 ++++++++ .../files/org.openbmc.examples.SDBusService0.conf | 8 -------- .../files/org.openbmc.examples.SDBusService1.conf | 8 -------- .../obmc-phosphor-example-sdbus/obmc-phosphor-example-sdbus.bb | 3 +-- 5 files changed, 10 insertions(+), 25 deletions(-) create mode 100644 meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService.conf delete mode 100644 meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService0.conf delete mode 100644 meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService1.conf (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/obmc-phosphor-example-sdbus.c b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/obmc-phosphor-example-sdbus.c index a66bb555c..769a2081f 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/obmc-phosphor-example-sdbus.c +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/obmc-phosphor-example-sdbus.c @@ -79,13 +79,7 @@ int main(int argc, char *argv[]) { } /* Take a well-known service name so that clients can find us */ - r = sd_bus_request_name(bus, "org.openbmc.examples.SDBusService0", 0); - if (r < 0) { - fprintf(stderr, "Failed to acquire service name: %s\n", strerror(-r)); - goto finish; - } - - r = sd_bus_request_name(bus, "org.openbmc.examples.SDBusService1", 0); + r = sd_bus_request_name(bus, "org.openbmc.examples.SDBusService", 0); if (r < 0) { fprintf(stderr, "Failed to acquire service name: %s\n", strerror(-r)); goto finish; diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService.conf b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService.conf new file mode 100644 index 000000000..86e2a53fa --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService.conf @@ -0,0 +1,8 @@ + + + + + + + diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService0.conf b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService0.conf deleted file mode 100644 index 45af4f4b6..000000000 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService0.conf +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService1.conf b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService1.conf deleted file mode 100644 index 5a7bfb84e..000000000 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-sdbus/files/org.openbmc.examples.SDBusService1.conf +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - 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 f1a9eb962..9a3018d37 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 @@ -3,8 +3,7 @@ DESCRIPTION = "Phosphor OpenBMC QEMU BSP example implementation." PR = "r1" DBUS_SERVICES = " \ - org.openbmc.examples.SDBusService0 \ - org.openbmc.examples.SDBusService1 \ + org.openbmc.examples.SDBusService \ " S = "${WORKDIR}" -- cgit v1.2.1