trivial: if not specified try to use some better dbx defaults

This commit is contained in:
Mario Limonciello 2020-05-14 15:55:26 -05:00 committed by Mario Limonciello
parent 43451d458b
commit 07f3fe702b

View File

@ -289,11 +289,16 @@ if build_standalone and get_option('plugin_uefi')
efi_app_location = join_paths(libexecdir, 'fwupd', 'efi')
conf.set_quoted ('EFI_APP_LOCATION', efi_app_location)
# e.g. could be:
# * /usr/share/dbxtool for Red Hat
# * /usr/share/secureboot/updates/dbx for Ubuntu
efi_dbxdir = get_option('efi_dbxdir')
if efi_dbxdir == ''
foreach dir : ['/usr/share/secureboot/updates/dbx', '/usr/share/dbxtool']
if run_command('[', '-d', dir, ']').returncode() == 0
efi_dbxdir = dir
endif
endforeach
endif
if efi_dbxdir != ''
message('efi-dbxdir: "@0@"'.format(efi_dbxdir))
conf.set_quoted ('FWUPD_EFI_DBXDIR', efi_dbxdir)
endif