blob: f60b2d646d2c03cccb904c951f0dbeafad6a8eee [file] [log] [blame]
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
inherit obmc-phosphor-systemd
OBMC_CONSOLE_TTYS:fb-nohost:append = " ttyS5"
SRC_URI:append = " \
file://80-minerva-obmc-console-uart.rules \
file://select-uart-mux \
"
RDEPENDS:${PN}:append = " bash"
do_install:append() {
# Replace upstream-provided udev rules
install -d ${D}/${nonarch_base_libdir}/udev/rules.d
rm -f ${D}/${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules
install -m 0644 ${WORKDIR}/80-minerva-obmc-console-uart.rules ${D}/${nonarch_base_libdir}/udev/rules.d
# Install script for selecting uart mux
install -m 0744 ${WORKDIR}/select-uart-mux ${D}${bindir}
}