diff options
author | Joseph Liu <kwliu@nuvoton.com> | 2020-03-20 06:53:14 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-06-12 15:59:18 +0300 |
commit | 710489e15735682bf0f6909417b3a7e815437b2d (patch) | |
tree | 92510e09b5dc92a39e293b7b787114359f8d95f6 /meta-quanta/meta-olympus-nuvoton/recipes-phosphor | |
parent | ce97fb1b619a0f606bfb9290e81ae643dcc0c53a (diff) | |
download | openbmc-710489e15735682bf0f6909417b3a7e815437b2d.tar.xz |
meta-quanta: olympus-nuvoton: console: add udev support
Listing tty mapped to UART2
Tested: Verified for Olympus platform with ttyS2
(From meta-quanta rev: 7ce165698a6b60452c4d6cf2ac3079fdd2eb290a)
Signed-off-by: Joseph Liu <kwliu@nuvoton.com>
Change-Id: I1c314f83e2abfc911d32e62cb081aff558ee734c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-quanta/meta-olympus-nuvoton/recipes-phosphor')
-rw-r--r-- | meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules | 1 | ||||
-rw-r--r-- | meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/obmc-console.conf (renamed from meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/files/obmc-console.conf) | 0 | ||||
-rw-r--r-- | meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend | 18 |
3 files changed, 11 insertions, 8 deletions
diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules new file mode 100644 index 000000000..0a73f0cfc --- /dev/null +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/80-olympus-nuvoton-sol.rules @@ -0,0 +1 @@ +SUBSYSTEM=="tty", ATTRS{iomem_base}=="0xF0003000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS2" SYMLINK+="ttyS2", TAG+="systemd" diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/files/obmc-console.conf b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/obmc-console.conf index f99eaff47..f99eaff47 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/files/obmc-console.conf +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console/obmc-console.conf diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend index 5967ce1bb..fe0e34672 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend +++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/console/obmc-console_%.bbappend @@ -1,12 +1,14 @@ -SUMMARY = "Nuvoton OpenBMC console daemon" -DESCRIPTION = "Nuvoton Daemon to handle UART console connections" -HOMEPAGE = "http://github.com/openbmc/obmc-console" -PR = "r1" +FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +SRC_URI_append_olympus-nuvoton = " file://80-olympus-nuvoton-sol.rules" -OBMC_CONSOLE_HOST_TTY := "ttyS2" +do_install_append_olympus-nuvoton() { + 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.ttyS2.conf -do_build_append() { - install -m 0644 ${THISDIR}/files/${PN}.conf ${WORKDIR}/${PN}.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-olympus-nuvoton-sol.rules ${D}/lib/udev/rules.d } |