Grant Williams | 59d2f61 | 2022-04-29 14:56:02 -0500 | [diff] [blame^] | 1 | FILESEXTRAPATHS:prepend:mori := "${THISDIR}/${PN}:" |
| 2 | RDEPENDS:${PN}:append:mori = " bash" |
| 3 | |
| 4 | OBMC_CONSOLE_TTYS:mori = "ttyS1 ttyS3" |
| 5 | |
| 6 | SRC_URI:append:mori = " file://${BPN}@.service \ |
| 7 | file://host_console_uart_config.service \ |
| 8 | file://mori_uart_mux_ctrl.sh \ |
| 9 | file://server.ttyS1.conf \ |
| 10 | file://server.ttyS3.conf \ |
| 11 | " |
| 12 | |
| 13 | SYSTEMD_SERVICE:${PN}:append:mori = " \ |
| 14 | ${BPN}@.service \ |
| 15 | host_console_uart_config.service \ |
| 16 | " |
| 17 | |
| 18 | do_install:append:mori() { |
| 19 | install -d ${D}${libexecdir}/${PN} |
| 20 | install -m 0755 ${WORKDIR}/mori_uart_mux_ctrl.sh ${D}${libexecdir}/${PN}/mori_uart_mux_ctrl.sh |
| 21 | install -m 0644 ${WORKDIR}/host_console_uart_config.service ${D}${systemd_unitdir}/system |
| 22 | # Overwrite base package's obmc-console@.service with our own |
| 23 | install -m 0644 ${WORKDIR}/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service |
| 24 | } |
| 25 | |
| 26 | pkg_postinst:${PN}:append:mori () { |
| 27 | systemctl --root=$D enable obmc-console@ttyS1.service |
| 28 | systemctl --root=$D enable obmc-console@ttyS3.service |
| 29 | } |
| 30 | |