blob: 2f8b52d1b48772d2e6943ea07d74f982b4f1ff84 [file] [log] [blame]
Andrew Geisslera1a6aef2021-06-25 14:23:58 -05001addhandler tpm_machinecheck
2tpm_machinecheck[eventmask] = "bb.event.SanityCheck"
3python tpm_machinecheck() {
4 skip_check = e.data.getVar('SKIP_META_TPM_SANITY_CHECK') == "1"
5 if 'tpm' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check:
6 bb.warn("You have included the meta-tpm layer, but \
7'tpm or tpm2' has not been enabled in your DISTRO_FEATURES. Some bbappend files \
8and preferred version setting may not take effect. See the meta-tpm README \
9for details on enabling tpm support.")
10}