diff options
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-phosphor/console')
3 files changed, 15 insertions, 0 deletions
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 000000000..3d0670bc3 --- /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 000000000..666e66aac --- /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 000000000..f78e3c22d --- /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 +} |