blob: e500001bedb04ddf91a2a2e54a7312db5678d068 [file] [log] [blame]
Potin Lai1a308772023-12-13 19:17:12 +08001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Peter Yinf5751422024-01-10 16:53:45 +08002RDEPENDS:${PN}:append = " bash"
Potin Lai1a308772023-12-13 19:17:12 +08003
4inherit obmc-phosphor-systemd
5
6SRC_URI:append = " \
7 file://setup-uart-routing \
8 file://setup-uart-routing.conf \
Peter Yinf5751422024-01-10 16:53:45 +08009 file://server.ttyUSB1.conf \
10 file://plat-80-obmc-console-uart.rules \
Potin Lai1a308772023-12-13 19:17:12 +080011 "
12
13do_install:append() {
14 install -d ${D}${libexecdir}/${PN}
15 install -m 0755 ${WORKDIR}/setup-uart-routing ${D}${libexecdir}/${PN}
16}
17
Peter Yinf5751422024-01-10 16:53:45 +080018OBMC_CONSOLE_TTYS:append = " ttyUSB1"
19
Peter Yin0c8f4e22024-03-07 09:42:13 +080020SYSTEMD_OVERRIDE:${PN}:append = " setup-uart-routing.conf:obmc-console@ttyS2.service.d/setup-uart-routing.conf"
21
Peter Yinf5751422024-01-10 16:53:45 +080022do_install:append() {
23 install -d ${D}${base_libdir}/udev/rules.d/
24 install -m 0644 ${WORKDIR}/plat-80-obmc-console-uart.rules ${D}${base_libdir}/udev/rules.d/80-obmc-console-uart.rules
25}