qemu.git
11 months agomeson: convert hw/rtc
Paolo Bonzini [Fri, 24 Jan 2020 11:35:13 +0000 (12:35 +0100)] 
meson: convert hw/rtc

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/timer
Paolo Bonzini [Fri, 24 Jan 2020 11:35:13 +0000 (12:35 +0100)] 
meson: convert hw/timer

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/tpm
Paolo Bonzini [Tue, 4 Aug 2020 12:03:59 +0000 (14:03 +0200)] 
meson: convert hw/tpm

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/usb
Paolo Bonzini [Thu, 6 Aug 2020 11:07:39 +0000 (13:07 +0200)] 
meson: convert hw/usb

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/vfio
Marc-André Lureau [Thu, 15 Aug 2019 13:31:07 +0000 (17:31 +0400)] 
meson: convert hw/vfio

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/virtio
Marc-André Lureau [Thu, 15 Aug 2019 13:23:36 +0000 (17:23 +0400)] 
meson: convert hw/virtio

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/watchdog
Marc-André Lureau [Thu, 15 Aug 2019 11:50:11 +0000 (15:50 +0400)] 
meson: convert hw/watchdog

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>
11 months agomeson: convert hw/mem
Marc-André Lureau [Thu, 15 Aug 2019 11:45:58 +0000 (15:45 +0400)] 
meson: convert hw/mem

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/smbios
Marc-André Lureau [Thu, 15 Aug 2019 11:39:54 +0000 (15:39 +0400)] 
meson: convert hw/smbios

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>
11 months agomeson: convert hw/nubus
Paolo Bonzini [Fri, 24 Jan 2020 11:50:57 +0000 (12:50 +0100)] 
meson: convert hw/nubus

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/semihosting
Paolo Bonzini [Fri, 24 Jan 2020 11:49:17 +0000 (12:49 +0100)] 
meson: convert hw/semihosting

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>
11 months agomeson: convert hw/core
Marc-André Lureau [Thu, 15 Aug 2019 11:24:58 +0000 (15:24 +0400)] 
meson: convert hw/core

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert hw/xen
Marc-André Lureau [Thu, 15 Aug 2019 11:15:32 +0000 (15:15 +0400)] 
meson: convert hw/xen

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert qapi-specific to meson
Marc-André Lureau [Thu, 15 Aug 2019 08:01:26 +0000 (12:01 +0400)] 
meson: convert qapi-specific to meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert disas directory to Meson
Marc-André Lureau [Fri, 26 Jul 2019 08:02:31 +0000 (12:02 +0400)] 
meson: convert disas directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert fsdev/
Marc-André Lureau [Thu, 25 Jul 2019 10:22:34 +0000 (14:22 +0400)] 
meson: convert fsdev/

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert backends directory to Meson
Marc-André Lureau [Wed, 24 Jul 2019 15:23:16 +0000 (19:23 +0400)] 
meson: convert backends directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert net directory to Meson
Marc-André Lureau [Mon, 22 Jul 2019 19:47:50 +0000 (23:47 +0400)] 
meson: convert net directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert migration directory to Meson
Marc-André Lureau [Wed, 24 Jul 2019 15:16:22 +0000 (19:16 +0400)] 
meson: convert migration directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert replay directory to Meson
Marc-André Lureau [Mon, 22 Jul 2019 19:40:45 +0000 (23:40 +0400)] 
meson: convert replay directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert qemu-storage-daemon
Paolo Bonzini [Tue, 4 Aug 2020 18:18:36 +0000 (20:18 +0200)] 
meson: convert qemu-storage-daemon

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert common QMP bits for qemu and qemu-storage-daemon
Paolo Bonzini [Tue, 4 Aug 2020 19:14:26 +0000 (21:14 +0200)] 
meson: convert common QMP bits for qemu and qemu-storage-daemon

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert dump/
Marc-André Lureau [Tue, 3 Sep 2019 12:59:33 +0000 (16:59 +0400)] 
meson: convert dump/

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert trace/
Marc-André Lureau [Tue, 3 Sep 2019 12:47:00 +0000 (16:47 +0400)] 
meson: convert trace/

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert most of softmmu/
Paolo Bonzini [Thu, 6 Aug 2020 11:40:26 +0000 (13:40 +0200)] 
meson: convert most of softmmu/

Leave out main.c, it's special due to fuzzing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert root directory to Meson
Paolo Bonzini [Mon, 3 Aug 2020 14:22:28 +0000 (16:22 +0200)] 
meson: convert root directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert ui directory to Meson
Marc-André Lureau [Tue, 16 Jul 2019 19:21:02 +0000 (23:21 +0400)] 
meson: convert ui directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert audio directory to Meson
Paolo Bonzini [Mon, 17 Aug 2020 10:47:55 +0000 (12:47 +0200)] 
meson: convert audio directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert tests/qtest to meson
Paolo Bonzini [Tue, 4 Aug 2020 18:00:40 +0000 (20:00 +0200)] 
meson: convert tests/qtest to meson

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert chardev directory to Meson (emulator part)
Paolo Bonzini [Mon, 29 Jul 2019 13:40:07 +0000 (15:40 +0200)] 
meson: convert chardev directory to Meson (emulator part)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure, Makefile; remove TOOLS and HELPERS-y variable
Paolo Bonzini [Thu, 18 Jul 2019 11:21:28 +0000 (13:21 +0200)] 
configure, Makefile; remove TOOLS and HELPERS-y variable

Everything involving tools is now done by meson.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: qemu-pr-helper
Marc-André Lureau [Tue, 16 Jul 2019 17:54:15 +0000 (21:54 +0400)] 
meson: qemu-pr-helper

The executable moves back from libexecdir to bindir, when it was
in 5.0 and earlier.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: qemu-{img,io,nbd}
Marc-André Lureau [Tue, 16 Jul 2019 17:37:25 +0000 (21:37 +0400)] 
meson: qemu-{img,io,nbd}

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert block
Marc-André Lureau [Thu, 29 Aug 2019 18:34:43 +0000 (22:34 +0400)] 
meson: convert block

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert chardev directory to Meson (tools part)
Marc-André Lureau [Mon, 15 Jul 2019 19:18:07 +0000 (23:18 +0400)] 
meson: convert chardev directory to Meson (tools part)

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>
11 months agomeson: add modules infrastructure
Marc-André Lureau [Thu, 29 Aug 2019 18:07:01 +0000 (22:07 +0400)] 
meson: add modules infrastructure

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: infrastructure for building emulators
Paolo Bonzini [Mon, 3 Feb 2020 10:42:03 +0000 (11:42 +0100)] 
meson: infrastructure for building emulators

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert target/s390x/gen-features.h
Marc-André Lureau [Sat, 17 Aug 2019 10:55:32 +0000 (14:55 +0400)] 
meson: convert target/s390x/gen-features.h

Needed by linux-user/s390x/cpu_loop.c; this removes the only use of HOST_CC.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert io directory to Meson
Marc-André Lureau [Tue, 16 Jul 2019 15:33:55 +0000 (19:33 +0400)] 
meson: convert io directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert crypto directory to Meson
Marc-André Lureau [Tue, 16 Jul 2019 15:28:54 +0000 (19:28 +0400)] 
meson: convert crypto directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert authz directory to Meson
Marc-André Lureau [Mon, 15 Jul 2019 18:54:34 +0000 (22:54 +0400)] 
meson: convert authz directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert qom directory to Meson (tools part)
Marc-André Lureau [Tue, 16 Jul 2019 15:40:16 +0000 (19:40 +0400)] 
meson: convert qom directory to Meson (tools part)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert check-qapi-schema
Paolo Bonzini [Tue, 28 Jan 2020 17:05:14 +0000 (18:05 +0100)] 
meson: convert check-qapi-schema

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert tests/fp and check-softfloat
Paolo Bonzini [Thu, 6 Aug 2020 12:08:31 +0000 (14:08 +0200)] 
meson: convert tests/fp and check-softfloat

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert check-decodetree
Paolo Bonzini [Tue, 28 Jan 2020 15:41:44 +0000 (16:41 +0100)] 
meson: convert check-decodetree

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: handle edk2 bios and descriptors
Marc-André Lureau [Mon, 15 Jul 2019 17:22:31 +0000 (21:22 +0400)] 
meson: handle edk2 bios and descriptors

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>
11 months agomeson: generate hxtool files
Marc-André Lureau [Mon, 15 Jul 2019 14:06:04 +0000 (18:06 +0400)] 
meson: generate hxtool files

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: generate shader headers
Marc-André Lureau [Mon, 15 Jul 2019 13:36:47 +0000 (17:36 +0400)] 
meson: generate shader headers

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: generate qemu-version.h
Marc-André Lureau [Mon, 15 Jul 2019 13:10:19 +0000 (17:10 +0400)] 
meson: generate qemu-version.h

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: keymap-gen
Marc-André Lureau [Mon, 15 Jul 2019 12:00:36 +0000 (16:00 +0400)] 
meson: keymap-gen

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add virtfs-proxy-helper
Marc-André Lureau [Mon, 15 Jul 2019 11:04:49 +0000 (15:04 +0400)] 
meson: add virtfs-proxy-helper

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add qemu-edid
Marc-André Lureau [Mon, 15 Jul 2019 10:50:58 +0000 (14:50 +0400)] 
meson: add qemu-edid

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>
11 months agomeson: add qemu-keymap
Marc-André Lureau [Mon, 15 Jul 2019 10:48:31 +0000 (14:48 +0400)] 
meson: add qemu-keymap

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add qemu-bridge-helper
Marc-André Lureau [Mon, 15 Jul 2019 10:39:25 +0000 (14:39 +0400)] 
meson: add qemu-bridge-helper

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>
11 months agomeson: convert dummy Windows qga/qemu-ga target
Paolo Bonzini [Tue, 28 Jan 2020 14:06:16 +0000 (15:06 +0100)] 
meson: convert dummy Windows qga/qemu-ga target

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add msi generation
Marc-André Lureau [Mon, 15 Jul 2019 09:06:20 +0000 (13:06 +0400)] 
meson: add msi generation

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert vss-win32
Marc-André Lureau [Mon, 15 Jul 2019 07:39:13 +0000 (11:39 +0400)] 
meson: convert vss-win32

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: convert qemu-ga
Paolo Bonzini [Thu, 18 Jul 2019 11:19:02 +0000 (13:19 +0200)] 
meson: convert qemu-ga

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add solaris and Haiku libraries
Paolo Bonzini [Sun, 9 Aug 2020 21:47:45 +0000 (23:47 +0200)] 
meson: add solaris and Haiku libraries

There is no probing in configure, so no need to pass them as
variables to meson.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add macos dependencies
Marc-André Lureau [Tue, 20 Aug 2019 15:48:59 +0000 (19:48 +0400)] 
meson: add macos dependencies

There is no probing in configure, so no need to pass them as
variables to meson. Do a regular meson dependency() instead.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/elf2dmp: convert to meson
Marc-André Lureau [Fri, 12 Jul 2019 19:47:06 +0000 (23:47 +0400)] 
contrib/elf2dmp: convert to meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/ivshmem: convert to meson
Marc-André Lureau [Fri, 12 Jul 2019 19:16:54 +0000 (23:16 +0400)] 
contrib/ivshmem: convert to meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/vhost-user-gpu: convert to meson
Marc-André Lureau [Fri, 12 Jul 2019 18:23:46 +0000 (22:23 +0400)] 
contrib/vhost-user-gpu: convert to meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/vhost-user-input: convert to meson
Marc-André Lureau [Fri, 12 Jul 2019 18:11:20 +0000 (22:11 +0400)] 
contrib/vhost-user-input: convert to meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/rdmacm-mux: convert to Meson
Paolo Bonzini [Mon, 10 Jun 2019 10:27:52 +0000 (12:27 +0200)] 
contrib/rdmacm-mux: convert to Meson

We can use config-host.mak to decide whether the tool has to be built,
apart from that the conversion is straightforward.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/vhost-user-scsi: convert to Meson
Paolo Bonzini [Mon, 10 Jun 2019 10:21:14 +0000 (12:21 +0200)] 
contrib/vhost-user-scsi: convert to Meson

The libiscsi pkg-config information is extracted from config-host.mak and
used to link vhost-user-blk.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agovhost-user-scsi: add compatibility for libiscsi 1.9.0
Paolo Bonzini [Mon, 10 Aug 2020 19:15:19 +0000 (21:15 +0200)] 
vhost-user-scsi: add compatibility for libiscsi 1.9.0

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/vhost-user-blk: convert to Meson
Paolo Bonzini [Mon, 10 Jun 2019 10:18:02 +0000 (12:18 +0200)] 
contrib/vhost-user-blk: convert to Meson

The GLib pkg-config information is extracted from config-host.mak and
used to link vhost-user-blk.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotools/virtiofsd: convert to Meson
Paolo Bonzini [Wed, 5 Feb 2020 08:45:39 +0000 (09:45 +0100)] 
tools/virtiofsd: convert to Meson

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agocontrib/libvhost-user: convert to Meson
Paolo Bonzini [Wed, 5 Feb 2020 08:44:24 +0000 (09:44 +0100)] 
contrib/libvhost-user: convert to Meson

Since libqemuutil.a has been converted to Meson, the conversion is
straightforward.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add version.o
Marc-André Lureau [Wed, 17 Jul 2019 20:31:05 +0000 (00:31 +0400)] 
meson: add version.o

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add remaining generated tcg trace helpers
Marc-André Lureau [Mon, 15 Jul 2019 14:48:06 +0000 (18:48 +0400)] 
meson: add remaining generated tcg trace helpers

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agolibqemuutil, qapi, trace: convert to meson
Paolo Bonzini [Wed, 19 Aug 2020 12:44:56 +0000 (08:44 -0400)] 
libqemuutil, qapi, trace: convert to meson

This shows how to do some "computations" in meson.build using its array
and dictionary data structures, and also a basic usage of the sourceset
module for conditional compilation.

Notice the new "if have_system" part of util/meson.build, which fixes
a bug in the old build system was buggy: util/dbus.c was built even for
non-softmmu builds, but the dependency on -lgio was lost when the linking
was done through libqemuutil.a.  Because all of its users required gio
otherwise, the bug was hidden.  Meson instead propagates libqemuutil's
dependencies down to its users, and shows the problem.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add testsuite Makefile generator
Paolo Bonzini [Tue, 28 Jan 2020 13:48:54 +0000 (14:48 +0100)] 
meson: add testsuite Makefile generator

Rules to execute tests are generated by a simple Python program
that integrates into the existing "make check" mechanism.  This
provides familiarity for developers, and also allows piecewise
conversion of the testsuite Makefiles to meson.

The generated rules are based on QEMU's existing test harness
Makefile and TAP parser.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: add sparse support
Paolo Bonzini [Mon, 3 Feb 2020 13:45:33 +0000 (14:45 +0100)] 
meson: add sparse support

Do not use cgcc; instead, extract compilation commands from compile_commands.json
and invoke sparse directly.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: use coverage option
Marc-André Lureau [Fri, 4 Oct 2019 13:35:16 +0000 (17:35 +0400)] 
meson: use coverage option

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: enable pie
Marc-André Lureau [Tue, 17 Sep 2019 11:39:36 +0000 (15:39 +0400)] 
meson: enable pie

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: move summary to meson.build
Paolo Bonzini [Mon, 3 Feb 2020 12:28:38 +0000 (13:28 +0100)] 
meson: move summary to meson.build

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agobuild-sys: add meson submodule
Marc-André Lureau [Wed, 21 Aug 2019 07:21:16 +0000 (11:21 +0400)] 
build-sys: add meson submodule

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agobuild-sys hack: link with whole .fa archives
Marc-André Lureau [Tue, 16 Jul 2019 08:30:43 +0000 (12:30 +0400)] 
build-sys hack: link with whole .fa archives

In order to link the *-obj-y files into tests, we will make static
libraries of them in Meson, and then link them as whole archives
into the tests.  To separate regular static libraries from link-whole
libraries, give them a different file extension.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: generate Meson cross file
Marc-André Lureau [Fri, 12 Jul 2019 21:47:54 +0000 (01:47 +0400)] 
configure: generate Meson cross file

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: integrate Meson in the build system
Paolo Bonzini [Mon, 10 Jun 2019 10:05:14 +0000 (12:05 +0200)] 
configure: integrate Meson in the build system

The Meson build system is integrated in the existing configure/make steps
by invoking Meson from the configure script and converting Meson's build.ninja
rules to an included Makefile.

build.ninja already provides tags/ctags/cscope rules, so they are removed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: add support for pseudo-"in source tree" builds
Daniel P. Berrangé [Fri, 21 Aug 2020 10:22:04 +0000 (12:22 +0200)] 
configure: add support for pseudo-"in source tree" builds

Meson requires the build dir to be separate from the source tree. Many
people are used to just running "./configure && make" though and the
meson conversion breaks that.

This introduces some backcompat support to make it appear as if an
"in source tree" build is being done, but with the results in the
"build/" directory. This allows "./configure && make" to work as it
did historically, albeit with the output binaries staying under build/.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotests/vm: include setuptools
Paolo Bonzini [Mon, 10 Aug 2020 11:44:26 +0000 (13:44 +0200)] 
tests/vm: include setuptools

They are a dependency of Meson, so install them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson
Paolo Bonzini [Mon, 3 Feb 2020 14:22:17 +0000 (15:22 +0100)] 
configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson

Split between CFLAGS/QEMU_CFLAGS and CXXFLAGS/QEMU_CXXFLAGS so that
we will use CFLAGS and CXXFLAGS for flags that we do not want to
pass to add_project_arguments.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: expand path variables for meson configure
Marc-André Lureau [Thu, 11 Jul 2019 15:13:39 +0000 (19:13 +0400)] 
configure: expand path variables for meson configure

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoconfigure: do not include $(...) variables in config-host.mak
Paolo Bonzini [Mon, 10 Jun 2019 10:03:04 +0000 (12:03 +0200)] 
configure: do not include $(...) variables in config-host.mak

This ensures that Meson will be able to reuse the results of
the tests that are performed in the configure script.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agonsis: use "make DESTDIR=" instead of "make prefix="
Paolo Bonzini [Mon, 10 Aug 2020 13:23:28 +0000 (15:23 +0200)] 
nsis: use "make DESTDIR=" instead of "make prefix="

The next patch will prevent modifying the prefix on "make install".  Adjust the
creation of the installer.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotests/docker: add test script for static linux-user builds
Paolo Bonzini [Mon, 10 Aug 2020 14:24:29 +0000 (16:24 +0200)] 
tests/docker: add test script for static linux-user builds

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotests/vm: check for Python YAML parser in the Makefile
Paolo Bonzini [Thu, 6 Aug 2020 12:05:50 +0000 (14:05 +0200)] 
tests/vm: check for Python YAML parser in the Makefile

No need to do it in the configure file if it is only used for a help message.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotests/vm: do not pollute configure with --efi-aarch64
Paolo Bonzini [Thu, 6 Aug 2020 12:00:50 +0000 (14:00 +0200)] 
tests/vm: do not pollute configure with --efi-aarch64

Just make EFI_AARCH64 a variable in the makefile that defaults to the efi
firmware included with QEMU.  It can be redefined on the "make" command
line.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agobuild-sys hack: ensure target directory is there
Marc-André Lureau [Tue, 27 Aug 2019 17:57:39 +0000 (21:57 +0400)] 
build-sys hack: ensure target directory is there

By removing some unnest-vars calls, we miss some directory creation
that may be required by some/dir/object.d.

This will go away once everything is converted to Meson.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: rename .inc.h files to .h.inc
Paolo Bonzini [Tue, 4 Feb 2020 11:41:01 +0000 (12:41 +0100)] 
meson: rename .inc.h files to .h.inc

Make it consistent with '.c.inc' and '.rst.inc'.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agomeson: rename included C source files to .c.inc
Paolo Bonzini [Tue, 4 Feb 2020 11:41:01 +0000 (12:41 +0100)] 
meson: rename included C source files to .c.inc

With Makefiles that have automatically generated dependencies, you
generated includes are set as dependencies of the Makefile, so that they
are built before everything else and they are available when first
building the .c files.

Alternatively you can use a fine-grained dependency, e.g.

        target/arm/translate.o: target/arm/decode-neon-shared.inc.c

With Meson you have only one choice and it is a third option, namely
"build at the beginning of the corresponding target"; the way you
express it is to list the includes in the sources of that target.

The problem is that Meson decides if something is a source vs. a
generated include by looking at the extension: '.c', '.cc', '.m', '.C'
are sources, while everything else is considered an include---including
'.inc.c'.

Use '.c.inc' to avoid this, as it is consistent with our other convention
of using '.rst.inc' for included reStructuredText files.  The editorconfig
file is adjusted.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agotrace: switch position of headers to what Meson requires
Paolo Bonzini [Tue, 4 Feb 2020 11:20:10 +0000 (12:20 +0100)] 
trace: switch position of headers to what Meson requires

Meson doesn't enjoy the same flexibility we have with Make in choosing
the include path.  In particular the tracing headers are using
$(build_root)/$(<D).

In order to keep the include directives unchanged,
the simplest solution is to generate headers with patterns like
"trace/trace-audio.h" and place forwarding headers in the source tree
such that for example "audio/trace.h" includes "trace/trace-audio.h".

This patch is too ugly to be applied to the Makefiles now.  It's only
a way to separate the changes to the tracing header files from the
Meson rewrite of the tracing logic.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agopc-bios/s390-ccw: do not use rules.mak
Thomas Huth [Fri, 7 Aug 2020 14:14:52 +0000 (16:14 +0200)] 
pc-bios/s390-ccw: do not use rules.mak

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agooptionrom: simplify Makefile
Marc-André Lureau [Tue, 8 Oct 2019 15:27:24 +0000 (19:27 +0400)] 
optionrom: simplify Makefile

Make it independent from the rules.mak, and clean up to use pattern rules.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agooss-fuzz/build: remove LIB_FUZZING_ENGINE
Paolo Bonzini [Sun, 9 Aug 2020 15:17:00 +0000 (17:17 +0200)] 
oss-fuzz/build: remove LIB_FUZZING_ENGINE

Meson build scripts will only include qemu-fuzz-TARGET rules if configured
with --enable-fuzzing, and that takes care of adding -fsanitize=fuzzer.
Therefore we can just specify the configure option and stop modifying
the CFLAGS and CONFIG_FUZZ options in the "make" invocation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
11 months agoMerge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2020-08-11' into staging
Peter Maydell [Wed, 19 Aug 2020 21:19:11 +0000 (22:19 +0100)] 
Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2020-08-11' into staging

Block patches for 5.1.0-rc4:
- Fix abort when running a backup job on an image whose size is not
  aligned to the backup job's cluster size

# gpg: Signature made Tue 11 Aug 2020 10:29:27 BST
# gpg:                using RSA key 91BEB60A30DB3E8857D11829F407DB0061D5CF40
# gpg:                issuer "mreitz@redhat.com"
# gpg: Good signature from "Max Reitz <mreitz@redhat.com>" [full]
# Primary key fingerprint: 91BE B60A 30DB 3E88 57D1  1829 F407 DB00 61D5 CF40

* remotes/maxreitz/tags/pull-block-2020-08-11:
  iotests: add test for unaligned granularity bitmap backup
  block/block-copy: always align copied region to cluster size

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
11 months agoOpen 5.2 development tree
Peter Maydell [Tue, 18 Aug 2020 12:44:04 +0000 (13:44 +0100)] 
Open 5.2 development tree

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>