blob: c45db9504204cd72141737433c22f9722ebe389b [file] [log] [blame]
Hieu Huynh325a8112022-10-24 11:15:17 +00001FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
2RDEPENDS:${PN} += "bash"
3
Chau Lyb10e6e72023-04-13 04:40:02 +00004# Declare port spcific config files
5OBMC_CONSOLE_TTYS = "ttyS0 ttyS1 ttyS2 ttyS3 ttyS7 ttyS8"
6CONSOLE_CLIENT = "2200 2201 2202 2203 2204 2205"
Hieu Huynh325a8112022-10-24 11:15:17 +00007
Chau Lybcc46612023-05-10 05:52:40 +00008SRC_URI += " \
9 ${@compose_list(d, 'CONSOLE_SERVER_CONF_FMT', 'OBMC_CONSOLE_TTYS')} \
Chau Lyb10e6e72023-04-13 04:40:02 +000010 ${@compose_list(d, 'CONSOLE_CLIENT_CONF_FMT', 'CONSOLE_CLIENT')} \
Chau Lyb6eaef42023-10-18 14:02:04 +000011 file://ampere_uart_console_setup.sh \
Chau Lyb10e6e72023-04-13 04:40:02 +000012 "
Hieu Huynh325a8112022-10-24 11:15:17 +000013
Chau Lybcc46612023-05-10 05:52:40 +000014SYSTEMD_SERVICE:${PN}:append = " \
15 ${@compose_list(d, 'CONSOLE_CLIENT_SERVICE_FMT', 'CONSOLE_CLIENT')} \
16 "
Chau Lyb10e6e72023-04-13 04:40:02 +000017
Hieu Huynh325a8112022-10-24 11:15:17 +000018do_install:append() {
Chau Lyb6eaef42023-10-18 14:02:04 +000019 # Script to set host's uart muxes to BMC
20 install -m 0755 ${WORKDIR}/ampere_uart_console_setup.sh ${D}${sbindir}
21
Chau Lyb10e6e72023-04-13 04:40:02 +000022 # Install the console client configurations
Chau Lyb6eaef42023-10-18 14:02:04 +000023 install -m 0644 ${WORKDIR}/client.*.conf ${D}${sysconfdir}/${BPN}
Hieu Huynh325a8112022-10-24 11:15:17 +000024}