blob: 90b21cd5f3316de3a2d5a602f23a7123ae2a8296 [file] [log] [blame]
FILESEXTRAPATHS:prepend:mori := "${THISDIR}/${PN}:"
RDEPENDS:${PN}:append:mori = " bash"
OBMC_CONSOLE_TTYS:mori = "ttyS1 ttyS3"
SRC_URI:append:mori = " file://${BPN}@.service \
file://host_console_uart_config.service \
file://mori_uart_mux_ctrl.sh \
file://server.ttyS1.conf \
file://server.ttyS3.conf \
"
SYSTEMD_SERVICE:${PN}:append:mori = " \
${BPN}@.service \
host_console_uart_config.service \
"
do_install:append:mori() {
install -d ${D}${libexecdir}/${PN}
install -m 0755 ${WORKDIR}/mori_uart_mux_ctrl.sh ${D}${libexecdir}/${PN}/mori_uart_mux_ctrl.sh
install -m 0644 ${WORKDIR}/host_console_uart_config.service ${D}${systemd_unitdir}/system
# Overwrite base package's obmc-console@.service with our own
install -m 0644 ${WORKDIR}/${BPN}@.service ${D}${systemd_unitdir}/system/${BPN}@.service
}
pkg_postinst:${PN}:append:mori () {
systemctl --root=$D enable obmc-console@ttyS1.service
systemctl --root=$D enable obmc-console@ttyS3.service
}