blob: dd857f2fbe2b02d7f2338c1cb5443dc5a534a99c [file] [log] [blame]
Chau Lyb6eaef42023-10-18 14:02:04 +00001FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
2RDEPENDS:${PN} += "bash"
3
4CONSOLE_CLIENT_SERVICE_FMT = "obmc-console-ssh@{0}.service"
5CONSOLE_SERVER_CONF_FMT = "file://server.{0}.conf"
6CONSOLE_CLIENT_CONF_FMT = "file://client.{0}.conf"
7
8SRC_URI += " \
9 file://ampere_uartmux_ctrl.sh \
10 file://obmc-console@.service \
11 "
12
13SYSTEMD_SERVICE:${PN}:remove = "obmc-console-ssh.socket"
14
15FILES:${PN}:remove = "${systemd_system_unitdir}/obmc-console-ssh@.service.d/use-socket.conf"
16
17PACKAGECONFIG:append = " concurrent-servers"
18
19do_install:append() {
20 # Script to switch host's uart muxes by GPIOs
21 install -d ${D}${sbindir}
22 install -m 0755 ${WORKDIR}/ampere_uartmux_ctrl.sh ${D}/${sbindir}
23
24 # Overriding service to call ampere_uart_console_setup.sh at ExecStartPre
25 install -d ${D}${systemd_system_unitdir}
26 install -m 0644 ${WORKDIR}/obmc-console@.service ${D}${systemd_system_unitdir}
27}