blob: 772a3e817df2c87c1b0e1b134afebd2fa876d387 [file] [log] [blame]
Paolo Bonzini3a156042024-04-08 17:53:29 +02001# If possible, add new files to other directories, by using "if_false".
2# If you need them here, try to add them under one of the if statements
3# below, so that it is clear who needs the stubbed functionality.
4
Paolo Bonzinia81df1b2020-08-19 08:44:56 -04005stub_ss.add(files('cpu-get-clock.c'))
Zhao Liufcce5282024-06-05 23:25:49 +08006stub_ss.add(files('error-printf.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -04007stub_ss.add(files('fdset.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -04008stub_ss.add(files('iothread-lock.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -04009stub_ss.add(files('is-daemonized.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -040010stub_ss.add(files('monitor-core.c'))
Paolo Bonzini957eca92024-04-08 17:53:28 +020011stub_ss.add(files('replay-mode.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -040012stub_ss.add(files('trace-control.c'))
Paolo Bonzini3a156042024-04-08 17:53:29 +020013
14if have_block
15 stub_ss.add(files('bdrv-next-monitor-owned.c'))
16 stub_ss.add(files('blk-commit-all.c'))
17 stub_ss.add(files('blk-exp-close-all.c'))
18 stub_ss.add(files('blockdev-close-all-bdrv-states.c'))
19 stub_ss.add(files('change-state-handler.c'))
20 stub_ss.add(files('get-vm-name.c'))
21 stub_ss.add(files('iothread-lock-block.c'))
22 stub_ss.add(files('migr-blocker.c'))
23 stub_ss.add(files('physmem.c'))
24 stub_ss.add(files('ram-block.c'))
Paolo Bonzini3a156042024-04-08 17:53:29 +020025 stub_ss.add(files('runstate-check.c'))
26 stub_ss.add(files('uuid.c'))
Claudio Fontana9b1c9112020-10-13 21:21:23 +020027endif
Paolo Bonzini3a156042024-04-08 17:53:29 +020028
29if have_block or have_ga
Konstantin Kostiuk109f1a42024-04-26 15:13:42 +030030 stub_ss.add(files('replay-tools.c'))
Paolo Bonzini3a156042024-04-08 17:53:29 +020031 # stubs for hooks in util/main-loop.c, util/async.c etc.
Alex Bennée113ac1d2024-06-20 16:22:12 +010032 stub_ss.add(files('cpus-virtual-clock.c'))
Paolo Bonzini3a156042024-04-08 17:53:29 +020033 stub_ss.add(files('icount.c'))
34 stub_ss.add(files('graph-lock.c'))
35 if linux_io_uring.found()
36 stub_ss.add(files('io_uring.c'))
37 endif
38 if libaio.found()
39 stub_ss.add(files('linux-aio.c'))
40 endif
41 stub_ss.add(files('qemu-timer-notify-cb.c'))
42
43 # stubs for monitor
44 stub_ss.add(files('monitor-internal.c'))
45 stub_ss.add(files('qmp-command-available.c'))
46 stub_ss.add(files('qmp-quit.c'))
47endif
48
49if have_block or have_user
50 stub_ss.add(files('qtest.c'))
51 stub_ss.add(files('vm-stop.c'))
52 stub_ss.add(files('vmstate.c'))
Paolo Bonzini3a156042024-04-08 17:53:29 +020053endif
54
55if have_user
56 # Symbols that are used by hw/core.
57 stub_ss.add(files('cpu-synchronize-state.c'))
Philippe Mathieu-Daudé9b45a022021-01-22 21:44:38 +010058 stub_ss.add(files('qdev.c'))
Paolo Bonzinia81df1b2020-08-19 08:44:56 -040059endif
Paolo Bonzini3a156042024-04-08 17:53:29 +020060
61if have_system
62 # Symbols that are only needed in some configurations. Try not
63 # adding more of these. If the symbol is used in specific_ss,
64 # in particular, consider defining a preprocessor macro via
65 # Kconfig or configs/targets/.
66 stub_ss.add(files('dump.c'))
67 stub_ss.add(files('cmos.c'))
68 stub_ss.add(files('fw_cfg.c'))
69 stub_ss.add(files('target-get-monitor-def.c'))
70 stub_ss.add(files('target-monitor-defs.c'))
71 stub_ss.add(files('win32-kbd-hook.c'))
72 stub_ss.add(files('xen-hw-stub.c'))
73endif
74
75if have_system or have_user
76 stub_ss.add(files('gdbstub.c'))
77
78 # Also included in have_system for --disable-tcg builds
79 stub_ss.add(files('replay.c'))
80
81 # Also included in have_system for tests/unit/test-qdev-global-props
82 stub_ss.add(files('hotplug-stubs.c'))
83 stub_ss.add(files('sysbus.c'))
84endif