meson: convert hw/semihosting
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jan 2020 11:49:17 +0000 (12:49 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:30:25 +0000 (06:30 -0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/Makefile.objs
hw/meson.build
hw/semihosting/Makefile.objs [deleted file]
hw/semihosting/meson.build [new file with mode: 0644]

index bdf8bdf256e8804e69cf70a5650df53c797adea8..6a7ca0fcfedfeaf11f19c8578805c9e748b06b53 100644 (file)
@@ -36,7 +36,6 @@ devices-dirs-y += virtio/
 devices-dirs-y += watchdog/
 devices-dirs-$(CONFIG_MEM_DEVICE) += mem/
 devices-dirs-$(CONFIG_NUBUS) += nubus/
-devices-dirs-y += semihosting/
 devices-dirs-y += smbios/
 endif
 
index fe7c46646035b0615297ef71abfafae67b928283..66a2f6cddd4581012825b708dbc06dafacb487a3 100644 (file)
@@ -1,2 +1,3 @@
 subdir('core')
+subdir('semihosting')
 subdir('xen')
diff --git a/hw/semihosting/Makefile.objs b/hw/semihosting/Makefile.objs
deleted file mode 100644 (file)
index 4ad47c0..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-obj-$(CONFIG_SEMIHOSTING) += config.o
-obj-$(CONFIG_SEMIHOSTING) += console.o
diff --git a/hw/semihosting/meson.build b/hw/semihosting/meson.build
new file mode 100644 (file)
index 0000000..f40ac57
--- /dev/null
@@ -0,0 +1,4 @@
+specific_ss.add(when: 'CONFIG_SEMIHOSTING', if_true: files(
+  'config.c',
+  'console.c',
+))