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 | |
| 20 | do_install:append() { |
| 21 | install -d ${D}${base_libdir}/udev/rules.d/ |
| 22 | install -m 0644 ${WORKDIR}/plat-80-obmc-console-uart.rules ${D}${base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 23 | } |