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 | |
| 4 | # Remove what installed by common recipe |
| 5 | OBMC_CONSOLE_HOST_TTY = "" |
Patrick Williams | d5c716d | 2022-02-17 07:30:57 -0600 | [diff] [blame] | 6 | SYSTEMD_SUBSTITUTIONS:remove = "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh.socket" |
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 | # Declare port spcific config files |
| 9 | OBMC_CONSOLE_TTYS = "ttyS0 ttyS1 ttyS2 ttyS3" |
| 10 | CONSOLE_CLIENT = "2200 2201 2202 2203" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 11 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 12 | CONSOLE_SERVER_CONF_FMT = "file://server.{0}.conf" |
| 13 | CONSOLE_CLIENT_CONF_FMT = "file://client.{0}.conf" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 14 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 15 | SRC_URI += " ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT', 'OBMC_CONSOLE_TTYS')} \ |
| 16 | ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \ |
| 17 | " |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 18 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 19 | SYSTEMD_SERVICE:${PN}:remove = "obmc-console-ssh.socket" |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 20 | |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 21 | FILES:${PN}:remove = "${systemd_system_unitdir}/obmc-console-ssh@.service.d/use-socket.conf" |
| 22 | |
Andrew Jeffery | 08413f2 | 2023-04-21 11:45:51 +0930 | [diff] [blame^] | 23 | PACKAGECONFIG:append = " concurrent-servers" |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 24 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 25 | do_install:append() { |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 26 | # Install the console client configurations |
| 27 | install -m 0644 ${WORKDIR}/client.*.conf ${D}${sysconfdir}/${BPN}/ |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 28 | } |