blob: 38040f42e6369a19f03153f17fe388900a4839d8 [file] [log] [blame]
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +00001FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
2RDEPENDS:${PN} += "bash"
Tung Nguyen189431e2020-12-16 08:11:51 +00003
4# Remove what installed by common recipe
5OBMC_CONSOLE_HOST_TTY = ""
Patrick Williamsd5c716d2022-02-17 07:30:57 -06006SYSTEMD_SUBSTITUTIONS:remove = "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh.socket"
Tung Nguyen189431e2020-12-16 08:11:51 +00007
Chau Ly0a0f3482023-04-13 05:06:28 +00008# Declare port spcific config files
9OBMC_CONSOLE_TTYS = "ttyS0 ttyS1 ttyS2 ttyS3"
10CONSOLE_CLIENT = "2200 2201 2202 2203"
Tung Nguyen189431e2020-12-16 08:11:51 +000011
Chau Ly0a0f3482023-04-13 05:06:28 +000012CONSOLE_SERVER_CONF_FMT = "file://server.{0}.conf"
13CONSOLE_CLIENT_CONF_FMT = "file://client.{0}.conf"
Tung Nguyen189431e2020-12-16 08:11:51 +000014
Chau Ly0a0f3482023-04-13 05:06:28 +000015SRC_URI += " ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT', 'OBMC_CONSOLE_TTYS')} \
16 ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \
17 "
Tung Nguyen189431e2020-12-16 08:11:51 +000018
Chau Ly0a0f3482023-04-13 05:06:28 +000019SYSTEMD_SERVICE:${PN}:remove = "obmc-console-ssh.socket"
Tung Nguyen189431e2020-12-16 08:11:51 +000020
Chau Ly0a0f3482023-04-13 05:06:28 +000021FILES:${PN}:remove = "${systemd_system_unitdir}/obmc-console-ssh@.service.d/use-socket.conf"
22
Andrew Jeffery08413f22023-04-21 11:45:51 +093023PACKAGECONFIG:append = " concurrent-servers"
Chau Ly0a0f3482023-04-13 05:06:28 +000024
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000025do_install:append() {
Chau Ly0a0f3482023-04-13 05:06:28 +000026 # Install the console client configurations
27 install -m 0644 ${WORKDIR}/client.*.conf ${D}${sysconfdir}/${BPN}/
Tung Nguyen189431e2020-12-16 08:11:51 +000028}