Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 1 | FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" |
| 2 | RDEPENDS:${PN} += "bash" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 3 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 4 | # Declare port spcific config files |
| 5 | OBMC_CONSOLE_TTYS = "ttyS0 ttyS1 ttyS2 ttyS3" |
| 6 | CONSOLE_CLIENT = "2200 2201 2202 2203" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 7 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 8 | CONSOLE_SERVER_CONF_FMT = "file://server.{0}.conf" |
| 9 | CONSOLE_CLIENT_CONF_FMT = "file://client.{0}.conf" |
Chau Ly | bcc4661 | 2023-05-10 05:52:40 +0000 | [diff] [blame] | 10 | CONSOLE_CLIENT_SERVICE_FMT = "obmc-console-ssh@{0}.service" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 11 | |
Chau Ly | bcc4661 | 2023-05-10 05:52:40 +0000 | [diff] [blame] | 12 | SRC_URI += " \ |
| 13 | ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT', 'OBMC_CONSOLE_TTYS')} \ |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 14 | ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \ |
| 15 | " |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 16 | |
Chau Ly | bcc4661 | 2023-05-10 05:52:40 +0000 | [diff] [blame] | 17 | SYSTEMD_SERVICE:${PN}:append = " \ |
| 18 | ${@compose_list(d, 'CONSOLE_CLIENT_SERVICE_FMT', 'CONSOLE_CLIENT')} \ |
| 19 | " |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 20 | SYSTEMD_SERVICE:${PN}:remove = "obmc-console-ssh.socket" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 21 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 22 | FILES:${PN}:remove = "${systemd_system_unitdir}/obmc-console-ssh@.service.d/use-socket.conf" |
| 23 | |
Andrew Jeffery | 08413f2 | 2023-04-21 11:45:51 +0930 | [diff] [blame] | 24 | PACKAGECONFIG:append = " concurrent-servers" |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 25 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 26 | do_install:append() { |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 27 | # Install the console client configurations |
| 28 | install -m 0644 ${WORKDIR}/client.*.conf ${D}${sysconfdir}/${BPN}/ |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 29 | } |