mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 01:17:55 +00:00

Reproducible by manually calling failing build targets first ``` ninja -C build plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o ninja: Entering directory `build' [1/1] Compiling C object plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o FAILED: plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o cc -Iplugins/tpm-eventlog/fwupdtpmevlog.p -Iplugins/tpm-eventlog -I../plugins/tpm-eventlog -I. -I.. -Ilibfwupd -I../libfwupd -Ilibfwupdplugin -I../libfwupdplugin -I/usr/include/libxmlb-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/gudev-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gusb-1 -I/usr/include/libusb-1.0 -I/usr/include/tss2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -g -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wdeclaration-after-statement -Wdiscarded-qualifiers -Wduplicated-branches -Wduplicated-cond -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wlogical-op -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-cast-function-type -Wno-address-of-packed-member -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wswitch-default -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wunused-variable -Wvla -Wwrite-strings -fstack-protector-strong -DFWUPD_COMPILATION -D_DEFAULT_SOURCE -DFWUPD_DISABLE_DEPRECATED -D_BSD_SOURCE -D__BSD_VISIBLE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -pthread -MD -MQ plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -MF plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o.d -o plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -c ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c In file included from ../libfwupdplugin/fwupdplugin.h:33, from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.h:9, from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c:9: ../libfwupdplugin/fu-plugin-vfuncs.h:17:10: fatal error: fu-hash.h: No such file or directory 17 | #include "fu-hash.h" | ^~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. ```
109 lines
2.2 KiB
Meson
109 lines
2.2 KiB
Meson
if get_option('plugin_tpm')
|
|
cargs = ['-DG_LOG_DOMAIN="FuPluginTpmEventlog"']
|
|
|
|
shared_module('fu_plugin_tpm_eventlog',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-plugin-tpm-eventlog.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-device.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
install : true,
|
|
install_dir: plugin_dir,
|
|
link_with : [
|
|
fwupdplugin,
|
|
fwupd,
|
|
],
|
|
c_args : cargs,
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
)
|
|
|
|
if get_option('tests')
|
|
testdatadirs = environment()
|
|
testdatadirs.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
testdatadirs.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
e = executable(
|
|
'tpm-eventlog-self-test',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-self-test.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-device.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
link_with : [
|
|
fwupdplugin,
|
|
fwupd,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
c_args : cargs
|
|
)
|
|
test('tpm-eventlog-self-test', e, env : testdatadirs) # added to installed-tests
|
|
endif
|
|
|
|
fwupdtpmevlog = executable(
|
|
'fwupdtpmevlog',
|
|
fu_hash,
|
|
sources : [
|
|
'fu-tpm-eventlog.c',
|
|
'fu-tpm-eventlog-common.c',
|
|
'fu-tpm-eventlog-parser.c',
|
|
],
|
|
include_directories : [
|
|
root_incdir,
|
|
fwupd_incdir,
|
|
fwupdplugin_incdir,
|
|
],
|
|
dependencies : [
|
|
plugin_deps,
|
|
tpm2tss,
|
|
],
|
|
link_with : [
|
|
fwupd,
|
|
fwupdplugin,
|
|
],
|
|
install : true,
|
|
install_dir : bindir
|
|
)
|
|
|
|
if get_option('man')
|
|
configure_file(
|
|
input : 'fwupdtpmevlog.1',
|
|
output : 'fwupdtpmevlog.1',
|
|
configuration : conf,
|
|
install: true,
|
|
install_dir: join_paths(mandir, 'man1'),
|
|
)
|
|
endif
|
|
|
|
if honggfuzz.found()
|
|
run_target('fuzz-tpm-eventlog',
|
|
command: [
|
|
honggfuzz,
|
|
'--input', join_paths(meson.current_source_dir(), 'fuzzing'),
|
|
'--output', join_paths(meson.current_build_dir(), 'fuzzing-corpus'),
|
|
'--workspace', join_paths(meson.current_build_dir(), 'fuzzing-findings'),
|
|
'--verifier',
|
|
'--', fwupdtpmevlog, '___FILE___',
|
|
],
|
|
)
|
|
endif
|
|
endif
|