xref: /openbmc/qemu/tests/qtest/fuzz/meson.build (revision 284d697c)
1specific_fuzz_ss.add(files('fuzz.c', 'fork_fuzz.c', 'qos_fuzz.c',
2                           'qtest_wrappers.c'), qos)
3
4# Targets
5specific_fuzz_ss.add(when: 'CONFIG_I440FX', if_true: files('i440fx_fuzz.c'))
6specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio_net_fuzz.c'))
7specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio_scsi_fuzz.c'))
8specific_fuzz_ss.add(files('generic_fuzz.c'))
9
10fork_fuzz = declare_dependency(
11  link_args: config_host['FUZZ_EXE_LDFLAGS'].split() +
12             ['-Wl,-wrap,qtest_inb',
13              '-Wl,-wrap,qtest_inw',
14              '-Wl,-wrap,qtest_inl',
15              '-Wl,-wrap,qtest_outb',
16              '-Wl,-wrap,qtest_outw',
17              '-Wl,-wrap,qtest_outl',
18              '-Wl,-wrap,qtest_readb',
19              '-Wl,-wrap,qtest_readw',
20              '-Wl,-wrap,qtest_readl',
21              '-Wl,-wrap,qtest_readq',
22              '-Wl,-wrap,qtest_writeb',
23              '-Wl,-wrap,qtest_writew',
24              '-Wl,-wrap,qtest_writel',
25              '-Wl,-wrap,qtest_writeq',
26              '-Wl,-wrap,qtest_memread',
27              '-Wl,-wrap,qtest_bufread',
28              '-Wl,-wrap,qtest_memwrite',
29              '-Wl,-wrap,qtest_bufwrite',
30              '-Wl,-wrap,qtest_memset']
31)
32
33specific_fuzz_ss.add(fork_fuzz)
34