Watchdog: Add recipe for phosphor-watchdog

Change-Id: I460e086e1e5d3d5db5405ac29927a7b460f56ff6
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/common/recipes-phosphor/watchdog/phosphor-watchdog/obmc/watchdog/poweron b/common/recipes-phosphor/watchdog/phosphor-watchdog/obmc/watchdog/poweron
new file mode 100644
index 0000000..3842474
--- /dev/null
+++ b/common/recipes-phosphor/watchdog/phosphor-watchdog/obmc/watchdog/poweron
@@ -0,0 +1,3 @@
+PATH=/xyz/openbmc_project/watchdog/host0
+SERVICE=xyz.openbmc_project.Watchdog
+TARGET=obmc-host-timeout@0.target
diff --git a/common/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog@.service b/common/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog@.service
new file mode 100644
index 0000000..8a7e8b6
--- /dev/null
+++ b/common/recipes-phosphor/watchdog/phosphor-watchdog/phosphor-watchdog@.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Phosphor %I watchdog
+
+[Service]
+Restart=no
+EnvironmentFile={envfiledir}/obmc/watchdog/%I
+ExecStart={sbindir}/phosphor-watchdog --service=${{SERVICE}} --path=${{PATH}} --target=${{TARGET}}
diff --git a/common/recipes-phosphor/watchdog/phosphor-watchdog/poweron.conf b/common/recipes-phosphor/watchdog/phosphor-watchdog/poweron.conf
new file mode 100644
index 0000000..7399fa5
--- /dev/null
+++ b/common/recipes-phosphor/watchdog/phosphor-watchdog/poweron.conf
@@ -0,0 +1,2 @@
+[Unit]
+Conflicts=obmc-host-stop@0.target