meta-quanta: gbs: add configuration of obmc-console
1. Host serial port 1 to BMC UART1
2. modify the udev rules for console config
Tested: run obmc-console-client and then can redirect
to host console
(From meta-quanta rev: b64af2ce0a7d55ee8a765e44788d3c96fb9ba971)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I20a70ff7e3bed278642d7903f1154664f805c20c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules b/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules
new file mode 100644
index 0000000..3d0670b
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-phosphor/console/files/80-gbs-nuvoton-sol.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="tty", ATTRS{iomem_base}=="0xF0002000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS1" SYMLINK+="ttyS1", TAG+="systemd"
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf b/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf
new file mode 100644
index 0000000..666e66a
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-phosphor/console/files/obmc-console.conf
@@ -0,0 +1 @@
+baud = 115200
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend b/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend
new file mode 100644
index 0000000..f78e3c2
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-phosphor/console/obmc-console_%.bbappend
@@ -0,0 +1,13 @@
+FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/files:"
+SRC_URI_append_gbs = " file://80-gbs-nuvoton-sol.rules"
+
+do_install_append_gbs() {
+ install -m 0755 -d ${D}${sysconfdir}/${BPN}
+ rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf
+ install -m 0644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/
+ ln -sr ${D}${sysconfdir}/${BPN}.conf ${D}${sysconfdir}/${BPN}/server.ttyS1.conf
+
+ install -d ${D}/lib/udev/rules.d
+ rm -f ${D}/lib/udev/rules.d/80-obmc-console-uart.rules
+ install -m 0644 ${WORKDIR}/80-gbs-nuvoton-sol.rules ${D}/lib/udev/rules.d
+}