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() { |
Anton Blanchard | 782d719 | 2021-08-16 23:51:27 -0600 | [diff] [blame] | 12 | rm -rf ${D}${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
John Wang | a66aa8a | 2020-09-30 13:19:08 +0800 | [diff] [blame] | 13 | install -m 0644 ${WORKDIR}/${PN}@.service ${D}${systemd_system_unitdir} |
| 14 | } |