meta-fii/meta-kudo: Clean obmc-console port configs

The obmc-console recipe changes from
https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/49336
add support for multiple port configurations. Therefore, the configs
do not need to occur in the bbappend.

Removed the additional configuration steps to configure multiple
ports and used OBMC_CONSOLE_TTYS override instead.

Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com>
Change-Id: Iba14a8b5935cd3cd8718a8bf94d5eed18de9db9e
diff --git a/meta-fii/meta-kudo/recipes-phosphor/console/obmc-console_%.bbappend b/meta-fii/meta-kudo/recipes-phosphor/console/obmc-console_%.bbappend
index 990c709..5dc4ab0 100644
--- a/meta-fii/meta-kudo/recipes-phosphor/console/obmc-console_%.bbappend
+++ b/meta-fii/meta-kudo/recipes-phosphor/console/obmc-console_%.bbappend
@@ -1,38 +1,21 @@
 FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:"
 RDEPENDS:${PN}:append:kudo = " bash"
 
-# Remove what installed by common recipe
-OBMC_CONSOLE_HOST_TTY = ""
-SYSTEMD_SUBSTITUTIONS:remove:kudo = " OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh@.service"
-SYSTEMD_SUBSTITUTIONS:remove:kudo = " OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh.socket"
+OBMC_CONSOLE_TTYS = "ttyS1 ttyS3"
 
-# Declare port spcific conf and service files
-HOST_CONSOLE_TTY = "ttyS1 ttyS3"
-
-CONSOLE_CONF_FMT = "file://server.{0}.conf"
-SRC_URI:append:kudo = " ${@compose_list(d, 'CONSOLE_CONF_FMT', 'HOST_CONSOLE_TTY')}"
-SRC_URI:append:kudo = " file://${BPN}@.service"
-SRC_URI:append:kudo = " file://kudo_uart_mux_ctrl.sh"
+SRC_URI:append:kudo = " file://${BPN}@.service \
+                        file://kudo_uart_mux_ctrl.sh \
+                      "
 
 SYSTEMD_SERVICE:${PN}:append:kudo = " \
-        ${PN}@.service \
+        ${BPN}@.service \
         "
 
 do_install:append() {
-    for i in ${HOST_CONSOLE_TTY}
-    do
-        install -m 0644 ${WORKDIR}/server.${i}.conf ${D}${sysconfdir}/${BPN}/server.${i}.conf
-    done
-
-    # Deal with files installed by the base package's .bb install function
-    rm -f ${D}${sysconfdir}/${BPN}.conf
-    rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf
-
     # Overwrite base package's obmc-console@.service with our own
     install -m 0644 ${WORKDIR}/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service
     install -d ${D}${libexecdir}/${PN}
     install -m 0755 ${WORKDIR}/kudo_uart_mux_ctrl.sh ${D}${libexecdir}/${PN}/kudo_uart_mux_ctrl.sh
-
 }
 
 pkg_postinst:${PN}:append () {