meson: add forgotten tpm support

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-04-24 19:28:04 -04:00
parent 41afb5eb72
commit 80c6fce81c
2 changed files with 7 additions and 0 deletions

View File

@ -986,6 +986,7 @@ foreach pair : [['utmp', 'HAVE_UTMP'],
['rfkill', 'ENABLE_RFKILL'],
['ldconfig', 'ENABLE_LDCONFIG'],
['efi', 'ENABLE_EFI'],
['tpm', 'SD_BOOT_LOG_TPM'],
['ima', 'HAVE_IMA'],
]
@ -1023,6 +1024,8 @@ if get_option('efi')
conf.set('ENABLE_EFI', 1)
conf.set_quoted('EFI_MACHINE_TYPE_NAME', EFI_MACHINE_TYPE_NAME)
conf.set('SD_TPM_PCR', get_option('tpm-pcrindex').to_int())
endif
#####################################################################

View File

@ -45,6 +45,8 @@ option('resolve', type : 'boolean',
description : 'systemd-resolved stack')
option('efi', type : 'boolean',
description : 'enable systemd-boot and bootctl')
option('tpm', type : 'boolean', value : false,
description : 'TPM should be used to log events and extend the registers')
option('environment-d', type : 'boolean',
description : 'support for environment.d')
option('binfmt', type : 'boolean',
@ -230,6 +232,8 @@ option('efi-ldsdir', type : 'string',
description : 'path to the EFI lds directory')
option('efi-includedir', type : 'string', value : '/usr/include/efi',
description : 'path to the EFI header directory')
option('tpm-pcrindex', type : 'string', value : '8',
description : 'TPM PCR register number to use')
option('bashcompletiondir', type : 'string',
description : 'directory for bash completion scripts ["no" disables]')