meta-amd: Enable SOL host console
This patch enables Serial over LAN Host console.
It uses "ttyS0" as a terminal device and sets the baud rate to 115200.
In EthanolX, UART1 is directly connected to the host.
It further removes the upstream-provided server configuration file which
is for LPC Virtual UART.
Change-Id: I877967a304e84b44df20a8f7d59f4a09e6bd678f
Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com>
diff --git a/recipes-phosphor/console/obmc-console/ethanolx/server.ttyS0.conf b/recipes-phosphor/console/obmc-console/ethanolx/server.ttyS0.conf
new file mode 100644
index 0000000..88d84d7
--- /dev/null
+++ b/recipes-phosphor/console/obmc-console/ethanolx/server.ttyS0.conf
@@ -0,0 +1,2 @@
+local-tty = ttyS0
+baud = 115200
diff --git a/recipes-phosphor/console/obmc-console_%.bbappend b/recipes-phosphor/console/obmc-console_%.bbappend
new file mode 100644
index 0000000..7f9c460
--- /dev/null
+++ b/recipes-phosphor/console/obmc-console_%.bbappend
@@ -0,0 +1,15 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/${MACHINE}:"
+OBMC_CONSOLE_HOST_TTY = "ttyS0"
+
+SRC_URI_remove = "file://${BPN}.conf"
+SRC_URI += "file://server.ttyS0.conf"
+
+do_install_append() {
+ # Remove upstream-provided configuration
+ rm -rf ${D}${sysconfdir}/${BPN}
+
+ # Install the server configuration
+ install -m 0755 -d ${D}${sysconfdir}/${BPN}
+ install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}/${BPN}/
+
+}