Add recipe for Phosphor Debug collector

Resolves openbmc/openbmc#1503

Change-Id: Id42d8c5042af4a9a74a9a284f3601989a65c5054
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/common/recipes-phosphor/dump/phosphor-debug-collector.bb b/common/recipes-phosphor/dump/phosphor-debug-collector.bb
new file mode 100644
index 0000000..0c0c125
--- /dev/null
+++ b/common/recipes-phosphor/dump/phosphor-debug-collector.bb
@@ -0,0 +1,32 @@
+SUMMARY = "Phosphor Debug Collector"
+DESCRIPTION = "Phosphor Debug Collector provides mechanisms \
+to collect various FFDC files and system parameters. \
+This will be helpful for troubleshooting the problems in OpenBMC \
+based systems."
+
+PR = "r1"
+
+inherit autotools \
+        pkgconfig \
+        obmc-phosphor-dbus-service
+
+require phosphor-debug-collector.inc
+
+DEPENDS += " \
+        phosphor-dbus-interfaces \
+        phosphor-dbus-interfaces-native \
+        phosphor-logging \
+        sdbusplus \
+        sdbusplus-native \
+        autoconf-archive-native \
+        "
+
+RDEPENDS_${PN} += " \
+        sdbusplus \
+        phosphor-dbus-interfaces \
+        phosphor-logging \
+        "
+
+DBUS_SERVICE_${PN} += "xyz.openbmc_project.Dump.service"
+
+S = "${WORKDIR}/git"
diff --git a/common/recipes-phosphor/dump/phosphor-debug-collector.inc b/common/recipes-phosphor/dump/phosphor-debug-collector.inc
new file mode 100644
index 0000000..0a983bd
--- /dev/null
+++ b/common/recipes-phosphor/dump/phosphor-debug-collector.inc
@@ -0,0 +1,5 @@
+HOMEPAGE = "https://github.com/openbmc/phosphor-debug-collector"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+SRC_URI += "git://github.com/openbmc/phosphor-debug-collector"
+SRCREV = "224882b0a744bbee8b1a8229f54a854cac4aea30"
diff --git a/common/recipes-phosphor/dump/phosphor-debug-collector/xyz.openbmc_project.Dump.service b/common/recipes-phosphor/dump/phosphor-debug-collector/xyz.openbmc_project.Dump.service
new file mode 100644
index 0000000..9aeba93
--- /dev/null
+++ b/common/recipes-phosphor/dump/phosphor-debug-collector/xyz.openbmc_project.Dump.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor Dump Manager
+
+[Service]
+ExecStart={sbindir}/phosphor-dump-manager
+Restart=always
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}