mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-15 01:08:19 +00:00
trivial: if not specified try to use some better dbx defaults
This commit is contained in:
parent
43451d458b
commit
07f3fe702b
11
meson.build
11
meson.build
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user