xref: /openbmc/qemu/tests/qtest/fuzz/meson.build (revision fe1127da)
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(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio_blk_fuzz.c'))
9specific_fuzz_ss.add(files('generic_fuzz.c'))
10
11fork_fuzz = declare_dependency(
12  link_args: config_host['FUZZ_EXE_LDFLAGS'].split() +
13             ['-Wl,-wrap,qtest_inb',
14              '-Wl,-wrap,qtest_inw',
15              '-Wl,-wrap,qtest_inl',
16              '-Wl,-wrap,qtest_outb',
17              '-Wl,-wrap,qtest_outw',
18              '-Wl,-wrap,qtest_outl',
19              '-Wl,-wrap,qtest_readb',
20              '-Wl,-wrap,qtest_readw',
21              '-Wl,-wrap,qtest_readl',
22              '-Wl,-wrap,qtest_readq',
23              '-Wl,-wrap,qtest_writeb',
24              '-Wl,-wrap,qtest_writew',
25              '-Wl,-wrap,qtest_writel',
26              '-Wl,-wrap,qtest_writeq',
27              '-Wl,-wrap,qtest_memread',
28              '-Wl,-wrap,qtest_bufread',
29              '-Wl,-wrap,qtest_memwrite',
30              '-Wl,-wrap,qtest_bufwrite',
31              '-Wl,-wrap,qtest_memset']
32)
33
34specific_fuzz_ss.add(fork_fuzz)
35