[PATCH v2 00/15] configure cleanups for QEMU 8.2

Paolo Bonzini posted 15 patches 7 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230902125934.113017-1-pbonzini@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Jason Wang <jasowang@redhat.com>, Michael Roth <michael.roth@amd.com>, Konstantin Kostiuk <kkostiuk@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Juan Quintela <quintela@redhat.com>, Peter Xu <peterx@redhat.com>, Leonardo Bras <leobras@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Makefile                                  |  29 +++--
accel/tcg/meson.build                     |   4 +-
chardev/meson.build                       |   2 +-
configure                                 | 125 ++++++----------------
contrib/plugins/Makefile                  |  18 ++--
docs/devel/build-system.rst               |   8 +-
docs/devel/kconfig.rst                    |   2 +-
gdbstub/meson.build                       |   4 +-
meson.build                               | 106 ++++++++++--------
meson_options.txt                         |   4 +
net/meson.build                           |  18 ++--
pc-bios/Makefile                          |  19 ----
pc-bios/meson.build                       |  25 ++++-
plugins/meson.build                       |  12 ++-
qga/meson.build                           |   4 +-
scripts/meson-buildoptions.sh             |   6 ++
storage-daemon/meson.build                |   2 +-
tcg/meson.build                           |   2 +-
tests/Makefile.include                    |   2 +-
tests/meson.build                         |   8 +-
tests/migration/meson.build               |   2 +-
tests/qtest/meson.build                   |  18 ++--
tests/tcg/tricore/Makefile.softmmu-target |   2 +-
tests/unit/meson.build                    |   6 +-
24 files changed, 198 insertions(+), 230 deletions(-)
delete mode 100644 pc-bios/Makefile
[PATCH v2 00/15] configure cleanups for QEMU 8.2
Posted by Paolo Bonzini 7 months, 4 weeks ago
This includes a few more patches cleaning up the configure/meson
separation.  The highlights are fixing --host-cc, removing the last
traces of compiler detection from config-host.mak, and dropping the
useless pc-bios/Makefile.

Compared to v1, I have also removed the loop that takes random CONFIG_*
lines of config-host.mak and shoves them into config-host.h.  These were
the last remains of the old scripts/create_config logic, but they are not
needed anymore because all config-host.h tests are done in meson.build or
come from meson-level options.  We're definitely getting into diminishing
returns land (which is a good thing), but I believe it's worth having a
few extra patches to further reduce the coupling between config-host.mak
and meson.build.

To be honest, the plugin code would probably be a lot simpler if
contrib/plugins/Makefile was turned into a meson.build file.  As things
stand, the "are plugins enabled?" logic has to stay in configure, in order
to decide whether to build contrib/plugins.  However, contrib/plugins
was left as a separate build process for demonstration purposes, so I
am not going to change that.  If desired, this can be changed in the
future (together with moving all the $plugins logic from configure
to meson.build).  Perhaps the "external project" module from Meson
could be used too, but right now it is limited to projects with
a "configure" phase.

Paolo

Paolo Bonzini (15):
  meson: do not unnecessarily use cmake for dependencies
  meson: update unsupported host/CPU messages
  configure: remove HOST_CC
  configure: create native file with contents of $host_cc
  meson: compile bundled device trees
  configure: remove boolean variables for targets
  configure: move --enable-debug-tcg to meson
  meson: test for CONFIG_TCG in config_all
  contrib/plugins: use an independent makefile
  configure: unify recursion into sub-Makefiles
  configure, meson: move --enable-plugins to meson
  configure, meson: remove CONFIG_SOLARIS from config-host.mak
  configure, meson: remove target OS symbols from config-host.mak
  meson: list leftover CONFIG_* symbols
  configure: remove dead code

 Makefile                                  |  29 +++--
 accel/tcg/meson.build                     |   4 +-
 chardev/meson.build                       |   2 +-
 configure                                 | 125 ++++++----------------
 contrib/plugins/Makefile                  |  18 ++--
 docs/devel/build-system.rst               |   8 +-
 docs/devel/kconfig.rst                    |   2 +-
 gdbstub/meson.build                       |   4 +-
 meson.build                               | 106 ++++++++++--------
 meson_options.txt                         |   4 +
 net/meson.build                           |  18 ++--
 pc-bios/Makefile                          |  19 ----
 pc-bios/meson.build                       |  25 ++++-
 plugins/meson.build                       |  12 ++-
 qga/meson.build                           |   4 +-
 scripts/meson-buildoptions.sh             |   6 ++
 storage-daemon/meson.build                |   2 +-
 tcg/meson.build                           |   2 +-
 tests/Makefile.include                    |   2 +-
 tests/meson.build                         |   8 +-
 tests/migration/meson.build               |   2 +-
 tests/qtest/meson.build                   |  18 ++--
 tests/tcg/tricore/Makefile.softmmu-target |   2 +-
 tests/unit/meson.build                    |   6 +-
 24 files changed, 198 insertions(+), 230 deletions(-)
 delete mode 100644 pc-bios/Makefile

-- 
2.41.0