Andrei Kartashev | c12c397 | 2021-11-28 22:41:06 +0300 | [diff] [blame] | 1 | FILESEXTRAPATHS:append := ":${THISDIR}/${PN}" |
| 2 | RDEPENDS:${PN} += "bash" |
| 3 | |
| 4 | OBMC_CONSOLE_HOST_TTY = "ttyS2" |
| 5 | SRC_URI += " \ |
| 6 | file://obmc-console@.service \ |
| 7 | file://uart-remapping.sh \ |
| 8 | " |
| 9 | inherit obmc-phosphor-systemd |
| 10 | |
| 11 | SYSTEMD_SERVICE:${PN} += " \ |
| 12 | ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \ |
| 13 | " |
| 14 | |
| 15 | do_install:append() { |
| 16 | rm -rf ${D}${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 17 | install -m 0644 ${WORKDIR}/${PN}@.service -D -t ${D}${systemd_system_unitdir} |
| 18 | install -m 0755 ${WORKDIR}/uart-remapping.sh -D -t ${D}${sbindir} |
| 19 | } |