Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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 \
|
||||
file://server.ttyS1.conf \
|
||||
file://server.ttyS3.conf \
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user