blob: 3bf59355336ef7ebe4b3e404e8a03e691cc3e84e [file] [log] [blame]
Yuxiao Zhangbd01c3b2024-01-24 16:25:21 -08001SUMMARY = "Disable ipmi kcs while in Guest Os"
2DESCRIPTION = "Disable ipmi kcs while an untrusted host OS is running"
3PR = "r1"
4
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit systemd
9
10SRC_URI += " \
11 file://disable-ipmi-kcs.service.in \
12"
13
14DEPENDS += "systemd"
15
16RDEPENDS:${PN}:append = " \
17 bare-metal-active \
18 "
19
20SYSTEMD_PACKAGES = "${PN}"
21SYSTEMD_SERVICE:${PN} = " \
22 disable-ipmi-kcs.service \
23 "
24
25# This should be aligned with the phosphor-ipmi-kcs and override per platform
26KCS_DEVICE ?= "ipmi_kcs1"
27
28do_install:append() {
29
30 sed ${WORKDIR}/disable-ipmi-kcs.service.in \
31 -e "s#@KCS_DEV@#${KCS_DEVICE}#" \
32 > ${WORKDIR}/disable-ipmi-kcs.service
33
34 install -d ${D}${systemd_system_unitdir}
35 install -m 0644 ${WORKDIR}/disable-ipmi-kcs.service ${D}${systemd_system_unitdir}
36}