Lei YU | 05e5f0b | 2021-08-12 11:08:52 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS:append := ":${THISDIR}/${PN}" |
John Wang | a66aa8a | 2020-09-30 13:19:08 +0800 | [diff] [blame] | 2 | OBMC_CONSOLE_HOST_TTY = "ttyS2" |
| 3 | SRC_URI += "file://obmc-console@.service \ |
| 4 | " |
| 5 | inherit obmc-phosphor-systemd |
| 6 | |
Lei YU | 05e5f0b | 2021-08-12 11:08:52 +0800 | [diff] [blame^] | 7 | SYSTEMD_SERVICE:${PN} += " \ |
John Wang | a66aa8a | 2020-09-30 13:19:08 +0800 | [diff] [blame] | 8 | ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \ |
| 9 | " |
| 10 | |
Lei YU | 05e5f0b | 2021-08-12 11:08:52 +0800 | [diff] [blame^] | 11 | do_install:append() { |
John Wang | a66aa8a | 2020-09-30 13:19:08 +0800 | [diff] [blame] | 12 | rm -rf ${D}${base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 13 | install -m 0644 ${WORKDIR}/${PN}@.service ${D}${systemd_system_unitdir} |
| 14 | } |