Potin Lai | 1a30877 | 2023-12-13 19:17:12 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Peter Yin | f575142 | 2024-01-10 16:53:45 +0800 | [diff] [blame] | 2 | RDEPENDS:${PN}:append = " bash" |
Potin Lai | 1a30877 | 2023-12-13 19:17:12 +0800 | [diff] [blame] | 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | |
| 6 | SRC_URI:append = " \ |
| 7 | file://setup-uart-routing \ |
| 8 | file://setup-uart-routing.conf \ |
Peter Yin | f575142 | 2024-01-10 16:53:45 +0800 | [diff] [blame] | 9 | file://server.ttyUSB1.conf \ |
| 10 | file://plat-80-obmc-console-uart.rules \ |
Potin Lai | 1a30877 | 2023-12-13 19:17:12 +0800 | [diff] [blame] | 11 | " |
| 12 | |
| 13 | do_install:append() { |
| 14 | install -d ${D}${libexecdir}/${PN} |
| 15 | install -m 0755 ${WORKDIR}/setup-uart-routing ${D}${libexecdir}/${PN} |
| 16 | } |
| 17 | |
Peter Yin | f575142 | 2024-01-10 16:53:45 +0800 | [diff] [blame] | 18 | OBMC_CONSOLE_TTYS:append = " ttyUSB1" |
| 19 | |
Peter Yin | 0c8f4e2 | 2024-03-07 09:42:13 +0800 | [diff] [blame] | 20 | SYSTEMD_OVERRIDE:${PN}:append = " setup-uart-routing.conf:obmc-console@ttyS2.service.d/setup-uart-routing.conf" |
| 21 | |
Peter Yin | f575142 | 2024-01-10 16:53:45 +0800 | [diff] [blame] | 22 | do_install:append() { |
| 23 | install -d ${D}${base_libdir}/udev/rules.d/ |
| 24 | install -m 0644 ${WORKDIR}/plat-80-obmc-console-uart.rules ${D}${base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 25 | } |