aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-11-14 15:23:24 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-03-09 18:51:45 +0100
commit906c0876eef947b8abfe2da3ad15fd6c8fa1e2ff (patch)
tree8841b71b9ace066464f00f5ffe2292733bf367d1
parentf28b958cbf08c4019f99091208e5c877b857b030 (diff)
downloadqemu-906c0876eef947b8abfe2da3ad15fd6c8fa1e2ff.zip
qemu-906c0876eef947b8abfe2da3ad15fd6c8fa1e2ff.tar.gz
qemu-906c0876eef947b8abfe2da3ad15fd6c8fa1e2ff.tar.bz2
hw/i386/xen: Compile 'xen-hvm.c' with Xen CPPFLAGS
xen-hvm.c calls xc_set_hvm_param() from <xenctrl.h>, so better compile it with Xen CPPFLAGS. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Message-Id: <20231114143816.71079-19-philmd@linaro.org>
-rw-r--r--hw/i386/xen/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/i386/xen/meson.build b/hw/i386/xen/meson.build
index 3dc4c4f..3f0df8b 100644
--- a/hw/i386/xen/meson.build
+++ b/hw/i386/xen/meson.build
@@ -1,8 +1,10 @@
i386_ss.add(when: 'CONFIG_XEN', if_true: files(
- 'xen-hvm.c',
'xen_apic.c',
'xen_pvdevice.c',
))
+i386_ss.add(when: ['CONFIG_XEN', xen], if_true: files(
+ 'xen-hvm.c',
+))
i386_ss.add(when: 'CONFIG_XEN_BUS', if_true: files(
'xen_platform.c',