blob: 230c85951eb6244d2631b86f00f17395558eeb8c [file] [log] [blame]
Andrew Geissler8b139282021-03-05 15:22:30 -06001SUMMARY = "IMA/EMV public keys"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
5inherit features_check
6REQUIRED_DISTRO_FEATURES = "ima"
7
Patrick Williams213cb262021-08-07 19:21:33 -05008ALLOW_EMPTY:${PN} = "1"
Andrew Geissler8b139282021-03-05 15:22:30 -06009
10do_install () {
11 if [ -e "${IMA_EVM_X509}" ]; then
12 install -d ${D}/${sysconfdir}/keys
13 install "${IMA_EVM_X509}" ${D}${sysconfdir}/keys/x509_evm.der
Andrew Geissler9aee5002022-03-30 16:27:02 +000014 ln -rs ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
Andrew Geissler8b139282021-03-05 15:22:30 -060015 fi
16}
Andrew Geissler9d3cc052021-03-31 13:36:22 -050017do_install[file-checksums] += "${@'${IMA_EVM_X509}:%s' % os.path.exists('${IMA_EVM_X509}')}"