blob: 1920bc59cf254554e22f4dfa3bf2084e2c1b3d94 [file] [log] [blame]
SUMMARY = "mctp Controller Init Service"
DESCRIPTION = "Provides a service that initiates mctp controller for PE i2c buses"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
S = "${WORKDIR}/mctp-cntlr-init"
inherit systemd
FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
SRC_URI = " \
file://mctp-controller-init.sh \
file://mctp-controller-init.service \
"
DEPENDS += "systemd"
RDEPENDS:${PN} += " \
bash \
mctp \
"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/mctp-controller-init.sh ${D}${bindir}/
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/mctp-controller-init.service ${D}${systemd_system_unitdir}/
}
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = " mctp-controller-init.service"