Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | inherit obmc-phosphor-systemd |
| 4 | |
Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 5 | OBMC_CONSOLE_HOST_TTY = "ttyS5" |
Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 6 | |
Patrick Williams | 0ce8d87 | 2024-02-05 14:03:31 -0600 | [diff] [blame] | 7 | SRC_URI:append = " \ |
Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 8 | file://80-minerva-obmc-console-uart.rules \ |
| 9 | file://select-uart-mux \ |
| 10 | " |
| 11 | |
Patrick Williams | 0ce8d87 | 2024-02-05 14:03:31 -0600 | [diff] [blame] | 12 | RDEPENDS:${PN}:append = " bash" |
Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 13 | |
Patrick Williams | 0ce8d87 | 2024-02-05 14:03:31 -0600 | [diff] [blame] | 14 | do_install:append() { |
Yang Chen | 27dbef0 | 2023-12-08 20:36:52 +0800 | [diff] [blame] | 15 | |
| 16 | # Replace upstream-provided udev rules |
| 17 | install -d ${D}/${nonarch_base_libdir}/udev/rules.d |
| 18 | rm -f ${D}/${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 19 | install -m 0644 ${WORKDIR}/80-minerva-obmc-console-uart.rules ${D}/${nonarch_base_libdir}/udev/rules.d |
| 20 | |
| 21 | # Install script for selecting uart mux |
| 22 | install -m 0744 ${WORKDIR}/select-uart-mux ${D}${bindir} |
| 23 | } |