meta-amd: Add phosphor host logger application

Host Logger application handles and store host's console output data,
such as boot logs or Linux kernel messages printed to the system
console.

Testing
To trigger host logs to be flushed to the log file from the log buffer,
the following command can be executed:
systemctl kill --signal SIGUSR1 <hostlogger@ttyS0.service>
logs will be generated at
/var/lib/obmc/hostlogs/host_<date>_<timestamp>

Change-Id: I56d51406b73789efa798b2bfd5929677db0f66fb
Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com>
diff --git a/recipes-amd/packagegroups/packagegroup-amd-apps.bb b/recipes-amd/packagegroups/packagegroup-amd-apps.bb
index 3c71220..13d59f5 100644
--- a/recipes-amd/packagegroups/packagegroup-amd-apps.bb
+++ b/recipes-amd/packagegroups/packagegroup-amd-apps.bb
@@ -40,5 +40,6 @@
         bmcweb \
         entity-manager \
         ipmitool \
+        phosphor-hostlogger \
         phosphor-webui \
         "
diff --git a/recipes-phosphor/logging/phosphor-hostlogger/ethanolx/ttyS0.conf b/recipes-phosphor/logging/phosphor-hostlogger/ethanolx/ttyS0.conf
new file mode 100644
index 0000000..c751864
--- /dev/null
+++ b/recipes-phosphor/logging/phosphor-hostlogger/ethanolx/ttyS0.conf
@@ -0,0 +1,7 @@
+SOCKET_ID=
+BUF_MAXSIZE=3000
+BUF_MAXTIME=0
+FLUSH_FULL=false
+HOST_STATE=/xyz/openbmc_project/state/host0
+OUT_DIR=/var/lib/obmc/hostlogs
+MAX_FILES=10
diff --git a/recipes-phosphor/logging/phosphor-hostlogger_%.bbappend b/recipes-phosphor/logging/phosphor-hostlogger_%.bbappend
new file mode 100644
index 0000000..9ae1d42
--- /dev/null
+++ b/recipes-phosphor/logging/phosphor-hostlogger_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/${MACHINE}:"
+
+# Default service instance to install (single-host mode)
+DEFAULT_INSTANCE = "ttyS0"
+
+SRC_URI_remove = "file://${BPN}.conf"
+SRC_URI += "file://ttyS0.conf"
+