summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-core/security-registers-check/security-registers-check.bb
blob: 2c4770471b45580f3821da85b830e78f0bcaf5b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "Security registers check"
DESCRIPTION = "script tool to check if registers value are security \
               log the security event to systemd journal, and also log to redfish \
              "

S = "${WORKDIR}"
SRC_URI = "file://security-registers-check.sh \
           file://security-registers-check.service \
"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${INTELBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
RDEPENDS:${PN} += "bash logger-systemd"

inherit systemd

FILES:${PN} += "${systemd_system_unitdir}/security-registers-check.service"

do_install() {
    install -d ${D}${systemd_system_unitdir}
    install -m 0644 ${WORKDIR}/security-registers-check.service ${D}${systemd_system_unitdir}
    install -d ${D}${bindir}
    install -m 0755 ${S}/security-registers-check.sh ${D}/${bindir}/security-registers-check.sh
}

SYSTEMD_SERVICE:${PN} += " security-registers-check.service"