meta-yadro: vegman: setup obmc-console

Add obmc-console configuration for Yadro VEGMAN machines

Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: I392a6621f1588833d3aaf6187bc277ea661d416f
diff --git a/meta-yadro/meta-vegman/recipes-phosphor/console/obmc-console_%.bbappend b/meta-yadro/meta-vegman/recipes-phosphor/console/obmc-console_%.bbappend
new file mode 100644
index 0000000..22161aa
--- /dev/null
+++ b/meta-yadro/meta-vegman/recipes-phosphor/console/obmc-console_%.bbappend
@@ -0,0 +1,19 @@
+FILESEXTRAPATHS:append := ":${THISDIR}/${PN}"
+RDEPENDS:${PN} += "bash"
+
+OBMC_CONSOLE_HOST_TTY = "ttyS2"
+SRC_URI += " \
+        file://obmc-console@.service \
+        file://uart-remapping.sh \
+"
+inherit obmc-phosphor-systemd
+
+SYSTEMD_SERVICE:${PN} += " \
+        ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \
+"
+
+do_install:append() {
+        rm -rf ${D}${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules
+        install -m 0644 ${WORKDIR}/${PN}@.service -D -t ${D}${systemd_system_unitdir}
+        install -m 0755 ${WORKDIR}/uart-remapping.sh -D -t ${D}${sbindir}
+}