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 | bcc4661 | 2023-05-10 05:52:40 +0000 | [diff] [blame] | 8 | SRC_URI += " \ |
| 9 | ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT', 'OBMC_CONSOLE_TTYS')} \ |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 10 | ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \ |
| 11 | " |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 12 | |
Chau Ly | bcc4661 | 2023-05-10 05:52:40 +0000 | [diff] [blame] | 13 | SYSTEMD_SERVICE:${PN}:append = " \ |
| 14 | ${@compose_list(d, 'CONSOLE_CLIENT_SERVICE_FMT', 'CONSOLE_CLIENT')} \ |
| 15 | " |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 16 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 17 | do_install:append() { |
Chau Ly | 0a0f348 | 2023-04-13 05:06:28 +0000 | [diff] [blame] | 18 | # Install the console client configurations |
Chau Ly | b6eaef4 | 2023-10-18 14:02:04 +0000 | [diff] [blame] | 19 | install -m 0644 ${WORKDIR}/client.*.conf ${D}${sysconfdir}/${BPN} |
Tung Nguyen | 189431e | 2020-12-16 08:11:51 +0000 | [diff] [blame] | 20 | } |