phosphor-logging: Create recipe

Add phosphor-logging as a virtual package

Change-Id: I591fbf94d90d383baf962cd94c08f6b63bb1ee83
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/common/recipes-phosphor/logging/phosphor-logging.bb b/common/recipes-phosphor/logging/phosphor-logging.bb
new file mode 100644
index 0000000..c7b2be9
--- /dev/null
+++ b/common/recipes-phosphor/logging/phosphor-logging.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Logging DBUS Object"
+DESCRIPTION = "Logging DBUS Object"
+HOMEPAGE = "https://github.com/openbmc/phosphor-logging"
+PR = "r1"
+
+inherit autotools pkgconfig
+inherit pythonnative
+inherit obmc-phosphor-license
+inherit obmc-phosphor-dbus-service
+
+DBUS_SERVICE_${PN} += "xyz.openbmc_project.Logging.service"
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "systemd"
+DEPENDS += "python-mako-native"
+DEPENDS += "python-pyyaml-native"
+PROVIDES += "virtual/obmc-logging-mgmt"
+RPROVIDES_${PN} += "virtual-obmc-logging-mgmt"
+
+SRC_URI += "git://github.com/openbmc/phosphor-logging"
+SRCREV = "c830e0f492c50e712c2bf1589e0282eebb4107ab"
+
+S = "${WORKDIR}/git"
+
diff --git a/common/recipes-phosphor/logging/phosphor-logging/xyz.openbmc_project.Logging.service b/common/recipes-phosphor/logging/phosphor-logging/xyz.openbmc_project.Logging.service
new file mode 100644
index 0000000..09ea947
--- /dev/null
+++ b/common/recipes-phosphor/logging/phosphor-logging/xyz.openbmc_project.Logging.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor Log Manager
+
+[Service]
+ExecStart={sbindir}/phosphor-log-manager
+Restart=always
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}