meson: convert hw/hyperv
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 16 Aug 2019 15:02:41 +0000 (19:02 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:30:31 +0000 (06:30 -0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/Makefile.objs
hw/hyperv/Makefile.objs [deleted file]
hw/hyperv/meson.build [new file with mode: 0644]
hw/meson.build

index 22eb80473059945b9995b23ca9c2b7c588363307..a2c2f6d1de6ad21a5a7bb1dada3ca89e1763cc88 100644 (file)
@@ -9,7 +9,6 @@ devices-dirs-y += cpu/
 devices-dirs-y += display/
 devices-dirs-y += dma/
 devices-dirs-y += gpio/
-devices-dirs-$(CONFIG_HYPERV) += hyperv/
 endif
 
 common-obj-y += $(devices-dirs-y)
diff --git a/hw/hyperv/Makefile.objs b/hw/hyperv/Makefile.objs
deleted file mode 100644 (file)
index 5b614e0..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-obj-y += hyperv.o
-obj-$(CONFIG_HYPERV_TESTDEV) += hyperv_testdev.o
-obj-$(CONFIG_VMBUS) += vmbus.o
diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build
new file mode 100644 (file)
index 0000000..1367e29
--- /dev/null
@@ -0,0 +1,3 @@
+specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c'))
+specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_testdev.c'))
+specific_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c'))
index 983edc1d4754f4902a0774792d52141bca564943..f9e5adfb481d25fea5dad5b59d7665c1a1e0f18a 100644 (file)
@@ -1,4 +1,5 @@
 subdir('core')
+subdir('hyperv')
 subdir('i2c')
 subdir('ide')
 subdir('input')