1935b7ead1
Introduce a new Kconfig symbol, CONFIG_DEVICE_TREE, that specifies whether to include the common device tree code in system/device_tree.c and to link to libfdt. For now, include it unconditionally if libfdt is available. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
41 lines
838 B
Meson
41 lines
838 B
Meson
specific_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_true: [files(
|
|
'arch_init.c',
|
|
'ioport.c',
|
|
'memory.c',
|
|
'physmem.c',
|
|
'watchpoint.c',
|
|
)])
|
|
|
|
system_ss.add(files(
|
|
'balloon.c',
|
|
'bootdevice.c',
|
|
'cpus.c',
|
|
'cpu-throttle.c',
|
|
'cpu-timers.c',
|
|
'datadir.c',
|
|
'dirtylimit.c',
|
|
'dma-helpers.c',
|
|
'globals.c',
|
|
'memory_mapping.c',
|
|
'qdev-monitor.c',
|
|
'qtest.c',
|
|
'rtc.c',
|
|
'runstate-action.c',
|
|
'runstate-hmp-cmds.c',
|
|
'runstate.c',
|
|
'tpm-hmp-cmds.c',
|
|
'vl.c',
|
|
), sdl, libpmem, libdaxctl)
|
|
|
|
if have_tpm
|
|
system_ss.add(files('tpm.c'))
|
|
endif
|
|
|
|
system_ss.add(when: seccomp, if_true: files('qemu-seccomp.c'))
|
|
system_ss.add(when: 'CONFIG_DEVICE_TREE',
|
|
if_true: [fdt, files('device_tree.c')],
|
|
if_false: files('device_tree-stub.c'))
|
|
if host_os == 'linux'
|
|
system_ss.add(files('async-teardown.c'))
|
|
endif
|