meta-facebook: harma: obmc-console: setup host uart routing

In harma system, the host console diagram as below.

```
 ┌──────────────┐
 │ Host Console │
 └┬─────────────┘
  │
┌─┼──────────────────────────┐
│ │                          │
│ │ ┌───────┐     ┌───────┐  │  ┌──────────────┐
│ ├─┤ UART1 ├─────┤ UART4 ├──┼──┤ obmc-console │
│ │ └───────┘     │(ttyS2)│  │  │    (SOL)     │
│ │               └───────┘  │  └──────────────┘
│ │                          │
│ │ ┌───────┐     ┌───────┐  │  ┌───────────────┐
│ └─┤ UART2 ├─────┤  IO1  ├──┼──┤ Debug Console │
│   └───────┘     └───────┘  │  └───────────────┘
│                            │
└────────────────────────────┘
```

Add an extra config for setting uart routing of host console.
- uart1 <--> uart4
- io1 <--> uart2

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I3b99b6b834d4ec1c4152c018c5a0e39230eec415
diff --git a/meta-facebook/meta-harma/recipes-phosphor/console/obmc-console_%.bbappend b/meta-facebook/meta-harma/recipes-phosphor/console/obmc-console_%.bbappend
new file mode 100644
index 0000000..2278e97
--- /dev/null
+++ b/meta-facebook/meta-harma/recipes-phosphor/console/obmc-console_%.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+inherit obmc-phosphor-systemd
+
+SRC_URI:append = " \
+    file://setup-uart-routing \
+    file://setup-uart-routing.conf \
+    "
+
+do_install:append() {
+    install -d ${D}${libexecdir}/${PN}
+    install -m 0755 ${WORKDIR}/setup-uart-routing ${D}${libexecdir}/${PN}
+}
+
+SYSTEMD_OVERRIDE:${PN}:append = " setup-uart-routing.conf:obmc-console@ttyS2.service.d/setup-uart-routing.conf"
+RDEPENDS:${PN}:append = " bash"