blob: 1ab03c8a8f7f59fe45b75866b6e1e952e6c4f024 [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"
Andrew Geisslerd5838332022-05-27 11:33:10 -05005 if 'tpm' not in e.data.getVar('DISTRO_FEATURES').split() and \
6 'tpm2' not in e.data.getVar('DISTRO_FEATURES').split() and \
7 not skip_check:
Andrew Geisslera1a6aef2021-06-25 14:23:58 -05008 bb.warn("You have included the meta-tpm layer, but \
9'tpm or tpm2' has not been enabled in your DISTRO_FEATURES. Some bbappend files \
10and preferred version setting may not take effect. See the meta-tpm README \
11for details on enabling tpm support.")
12}