Skip to content

Next round of Meson fixes and cleanups

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest39 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/39configure: Add system = 'linux' for meson when cross-compilingconfigure+3 -01 reply
2/39mtest2make: split environment from test commandscripts/mtest2make.py+9 -80 replies
3/39mtest2make: split working directory from test commandscripts/mtest2make.py+8 -80 replies
4/39mtest2make: hide output of successful testsscripts/mtest2make.py scripts/test-driver.py+36 -10 replies
5/39mtest2make: unify tests that appear in multiple suitesscripts/mtest2make.py+35 -340 replies
6/39meson: remove b_lundef optionmeson.build+1 -10 replies
7/39configure: do not include absolute paths in -I and -L pathsconfigure+5 -50 replies
8/39configure: include cross sdl2-config in meson cross fileconfigure+3 -00 replies
9/39ninjatool: use constant names for stamp filesscripts/ninjatool.py+5 -30 replies
10/39meson: fix libqos linkingtests/qtest/libqos/meson.build+6 -30 replies
11/39meson: build qapi tests librarytests/Makefile.include tests/include/meson.build tests/meson.build+62 -780 replies
12/39meson: declare tasn1 dependencymeson.build+5 -00 replies
13/39meson: declare keyutils dependencyconfigure meson.build tests/Makefile.include +1 more+11 -70 replies
14/39meson: convert qht-benchtests/Makefile.include tests/meson.build+4 -10 replies
15/39tests: qga has virtio-serial by default when host has ittests/test-qga.c+2 -00 replies
16/39meson: convert the unit teststests/Makefile.include tests/meson.build tests/test-qga.c+179 -2550 replies
17/39meson: move keyutils dependency checkconfigure meson.build+3 -290 replies
18/39meson: remove old socket_scm_helper ruletests/Makefile.include+0 -10 replies
19/39meson: convert vhost-user-bridgetests/Makefile.include tests/meson.build+9 -20 replies
20/39meson: convert atomic*-benchtests/Makefile.include tests/meson.build+10 -50 replies
21/39tests: do not print benchmark output to stdouttests/benchmark-crypto-cipher.c tests/benchmark-crypto-hash.c tests/benchmark-crypto-hmac.c+9 -90 replies
22/39meson: convert the speed testsMakefile scripts/mtest2make.py tests/Makefile.include +1 more+30 -130 replies
23/39tests/migration/stress: remove unused exit_successtests/migration/stress.c+0 -130 replies
24/39meson: fix migration/stress compilation with glibc>=2.30meson.build tests/migration/stress.c+5 -00 replies
25/39meson: convert migration/initrd-stresstests/Makefile.include tests/meson.build tests/migration/initrd-stress.sh +1 more+25 -140 replies
26/39configure: remove dead code for in-tree buildsconfigure+2 -120 replies
27/39meson: compute config_all_devices directly.gitignore meson.build scripts/grepy.sh+2 -160 replies
28/39Makefile: remove dead variables and includesMakefile Makefile.objs tests/Makefile.include+0 -940 replies
29/39Makefile: inline the relevant parts of rules.makMakefile docs/devel/build-system.rst rules.mak +1 more+22 -1800 replies
30/39configure: move disassembler configuration to meson.gitignore configure disas/meson.build +1 more+45 -920 replies
31/39configure: move C++ compiler handling to mesonconfigure meson.build scripts/empty.c+26 -580 replies
32/39meson: keep all compiler flags detection togethermeson.build+17 -170 replies
33/39configure: move -ldl test to mesonaccel/tcg/meson.build configure meson.build+5 -20 replies
34/39configure: remove unnecessary libm testconfigure+0 -140 replies
35/39configure: do not look for install(1)configure docs/devel/build-system.rst meson.build+2 -560 replies
36/39meson: get glib compilation flags from GLIB_CFLAGSconfigure meson.build+14 -120 replies
37/39configure: do not include dependency flags in QEMU_CFLAGS and LIBSMakefile configure hw/arm/meson.build +2 more+4 -440 replies
38/39configure: drop dead variablesconfigure+1 -80 replies
39/39docs: suggest Meson replacements for various configure functionsdocs/devel/build-system.rst+7 -30 replies

Reviews trailers per patch

2 of 39 patches have a Reviewed-by or Acked-by.

PatchDaniel P. BerrangéMark Cave-AylandPhilippe Mathieu-DaudéAlex Bennée
1/39R-b R-b
2/39
3/39
4/39
5/39
6/39
7/39T-b
8/39
9/39
10/39
11/39
12/39
13/39
14/39
15/39
16/39
17/39
18/39
19/39
20/39
21/39R-b
22/39
23/39
24/39
25/39
26/39
27/39
28/39
29/39
30/39
31/39
32/39
33/39
34/39
35/39
36/39
37/39
38/39
39/39

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 00/39] Next round of Meson fixes and cleanups

This is the final set of patches that I would like to have in 5.2 as far as the Meson conversion is concerned.

Patch 1 is a cross-compilation bugfix from Thomas.

Patches 2..5 rework the "make check" generator so that outputs of successful tests are hidden, and so that if a test appears in multiple suites it is not run multiple times by "make check".

Patch 6..10 are miscellaneous bugfixes.

Patches 11..25 convert the check-unit testsuite.

Patches 26..39 remove some of the now-dead code from the configure script and the Makefile, introducing some simplification whenever symbols are not needed anymore in the Makefile.

Marc-André Lureau (14):
meson: build qapi tests library
meson: declare tasn1 dependency
meson: declare keyutils dependency
meson: convert qht-bench
tests: qga has virtio-serial by default when host has it
meson: convert the unit tests
meson: move keyutils dependency check
meson: remove old socket_scm_helper rule
meson: convert vhost-user-bridge
meson: convert atomic*-bench
tests: do not print benchmark output to stdout tests/migration/stress: remove unused exit_success
meson: fix migration/stress compilation with glibc>=2.30
meson: convert migration/initrd-stress

Paolo Bonzini (24):
mtest2make: split environment from test command
mtest2make: split working directory from test command
mtest2make: hide output of successful tests
mtest2make: unify tests that appear in multiple suites
meson: remove b_lundef option
configure: do not include absolute paths in -I and -L paths
configure: include cross sdl2-config in meson cross file
ninjatool: use constant names for stamp files
meson: fix libqos linking
meson: convert the speed tests
configure: remove dead code for in-tree builds
meson: compute config_all_devices directly
Makefile: remove dead variables and includes
Makefile: inline the relevant parts of rules.mak
configure: move disassembler configuration to meson
configure: move C++ compiler handling to meson
meson: keep all compiler flags detection together
configure: move -ldl test to meson
configure: remove unnecessary libm test
configure: do not look for install(1)
meson: get glib compilation flags from GLIB_CFLAGS
configure: do not include dependency flags in QEMU_CFLAGS and LIBS
configure: drop dead variables
docs: suggest Meson replacements for various configure functions

Thomas Huth (1):
configure: Add system = 'linux' for meson when cross-compiling

 .gitignore                       |   2 -
 Makefile                         |  63 ++---
 Makefile.objs                    |  34 ---
 accel/tcg/meson.build            |   2 +-
 configure                        | 331 ++-----------------------
 disas/meson.build                |   4 +-
 docs/devel/build-system.rst      |  18 +-
 hw/arm/meson.build               |   2 +-
 hw/riscv/meson.build             |   2 +-
 meson.build                      | 135 ++++++++---
 monitor/meson.build              |   2 +-
 rules.mak                        | 158 ------------
 scripts/empty.c                  |   6 +
 scripts/grepy.sh                 |   3 -
 scripts/mtest2make.py            |  95 ++++----
 scripts/ninjatool.py             |   8 +-
 scripts/test-driver.py           |  35 +++
 tests/Makefile.include           | 405 +------------------------------
 tests/benchmark-crypto-cipher.c  |   8 +-
 tests/benchmark-crypto-hash.c    |   2 +-
 tests/benchmark-crypto-hmac.c    |   8 +-
 tests/include/meson.build        |  16 ++
 tests/meson.build                | 259 ++++++++++++++++++++
 tests/migration/initrd-stress.sh |  10 +
 tests/migration/meson.build      |  14 ++
 tests/migration/stress.c         |  15 +-
 tests/qtest/libqos/meson.build   |   9 +-
 tests/tcg/Makefile.qemu          |   2 -
 tests/test-crypto-secret.c       |  10 +-
 tests/test-qga.c                 |   4 +-
 30 files changed, 588 insertions(+), 1074 deletions(-)
 delete mode 100644 Makefile.objs
 delete mode 100644 rules.mak
 create mode 100644 scripts/empty.c
 delete mode 100755 scripts/grepy.sh
 create mode 100644 scripts/test-driver.py
 create mode 100644 tests/include/meson.build
 create mode 100755 tests/migration/initrd-stress.sh
 create mode 100644 tests/migration/meson.build
Signature · 1 line
2.26.2