aboutsummaryrefslogtreecommitdiffstats
path: root/meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb
blob: 230c85951eb6244d2631b86f00f17395558eeb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SUMMARY = "IMA/EMV public keys"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit features_check
REQUIRED_DISTRO_FEATURES = "ima"

ALLOW_EMPTY:${PN} = "1"

do_install () {
    if [ -e "${IMA_EVM_X509}" ]; then
        install -d ${D}/${sysconfdir}/keys
        install "${IMA_EVM_X509}" ${D}${sysconfdir}/keys/x509_evm.der
        ln -rs ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
    fi
}
do_install[file-checksums] += "${@'${IMA_EVM_X509}:%s' % os.path.exists('${IMA_EVM_X509}')}"