mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-09 13:42:49 +00:00
81 lines
1.4 KiB
Meson
81 lines
1.4 KiB
Meson
cargs = ['-DG_LOG_DOMAIN="FuPluginUefiDbx"']
|
|
|
|
shared_module('fu_plugin_uefi_dbx',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-uefi-dbx.c',
|
|
'fu-uefi-dbx-common.c',
|
|
'fu-uefi-dbx-file.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
)
|
|
|
|
if get_option('tests')
|
|
e = executable(
|
|
'uefi-dbx-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-uefi-dbx-common.c',
|
|
'fu-uefi-dbx-file.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
)
|
|
test('uefi-dbx-self-test', e)
|
|
endif
|
|
|
|
uefi_dbx_fuzzer = executable(
|
|
'uefi-dbx-fuzzer',
|
|
sources : [
|
|
'fu-fuzzer.c',
|
|
'fu-uefi-dbx-file.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
)
|
|
|
|
run_target('fuzz-efidbx',
|
|
command: [
|
|
join_paths(meson.source_root(), 'contrib/afl-fuzz.py'),
|
|
'-i', join_paths(meson.current_source_dir(), 'fuzzing'),
|
|
'-o', join_paths(meson.current_build_dir(), 'findings'),
|
|
'--command', uefi_dbx_fuzzer,
|
|
fwupdtool,
|
|
],
|
|
)
|