Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:kudo := "${THISDIR}/${PN}:" |
| 2 | RDEPENDS:${PN}:append:kudo = " bash" |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 3 | |
Charles Boyer | c33f235 | 2022-01-12 17:10:17 -0600 | [diff] [blame^] | 4 | OBMC_CONSOLE_TTYS = "ttyS1 ttyS3" |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 5 | |
Charles Boyer | c33f235 | 2022-01-12 17:10:17 -0600 | [diff] [blame^] | 6 | SRC_URI:append:kudo = " file://${BPN}@.service \ |
| 7 | file://kudo_uart_mux_ctrl.sh \ |
| 8 | " |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 9 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 10 | SYSTEMD_SERVICE:${PN}:append:kudo = " \ |
Charles Boyer | c33f235 | 2022-01-12 17:10:17 -0600 | [diff] [blame^] | 11 | ${BPN}@.service \ |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 12 | " |
| 13 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 14 | do_install:append() { |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 15 | # Overwrite base package's obmc-console@.service with our own |
| 16 | install -m 0644 ${WORKDIR}/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service |
Charles Boyer | 2adad36 | 2021-11-24 15:58:03 -0600 | [diff] [blame] | 17 | install -d ${D}${libexecdir}/${PN} |
| 18 | install -m 0755 ${WORKDIR}/kudo_uart_mux_ctrl.sh ${D}${libexecdir}/${PN}/kudo_uart_mux_ctrl.sh |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 19 | } |
| 20 | |
Mohaimen Alsamarai | f59d017 | 2021-08-17 09:34:22 -0500 | [diff] [blame] | 21 | pkg_postinst:${PN}:append () { |
Lancelot Kao | dc456f9 | 2021-02-21 18:42:38 -0600 | [diff] [blame] | 22 | systemctl --root=$D enable obmc-console@ttyS1.service |
| 23 | systemctl --root=$D enable obmc-console@ttyS3.service |
| 24 | } |
Charles Boyer | 2adad36 | 2021-11-24 15:58:03 -0600 | [diff] [blame] | 25 | |