blob: 020a00b1c9aba58da45da54c384abef8550003c8 [file] [log] [blame]
Yang Chen27dbef02023-12-08 20:36:52 +08001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3inherit obmc-phosphor-systemd
4
Yang Chen27dbef02023-12-08 20:36:52 +08005OBMC_CONSOLE_HOST_TTY = "ttyS5"
Yang Chen27dbef02023-12-08 20:36:52 +08006
Patrick Williams0ce8d872024-02-05 14:03:31 -06007SRC_URI:append = " \
Yang Chen27dbef02023-12-08 20:36:52 +08008 file://80-minerva-obmc-console-uart.rules \
9 file://select-uart-mux \
10"
11
Patrick Williams0ce8d872024-02-05 14:03:31 -060012RDEPENDS:${PN}:append = " bash"
Yang Chen27dbef02023-12-08 20:36:52 +080013
Patrick Williams0ce8d872024-02-05 14:03:31 -060014do_install:append() {
Yang Chen27dbef02023-12-08 20:36:52 +080015
16 # Replace upstream-provided udev rules
17 install -d ${D}/${nonarch_base_libdir}/udev/rules.d
18 rm -f ${D}/${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules
19 install -m 0644 ${WORKDIR}/80-minerva-obmc-console-uart.rules ${D}/${nonarch_base_libdir}/udev/rules.d
20
21 # Install script for selecting uart mux
22 install -m 0744 ${WORKDIR}/select-uart-mux ${D}${bindir}
23}