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