Skip to content

Use meson_options.txt in the configure script

Thomas Huth qemu-devel 2 versions – Applied

Status from this message: Queued this one for now, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied
  2. v13 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Improved shell code according to the suggestions of Eric
- Split the vnc change into a separate patch
- Add a comment to meson_options.txt in the new final patch

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5configure: Add the possibility to read options from meson_options.txtconfigure+23 -11 reply
2/5meson_options.txt: Switch the default value for the vnc option to 'auto'meson_options.txt+1 -12 replies
3/5configure: Remove options that can be handled via meson_options.txt insteadconfigure+4 -3120 replies
4/5configure: Get help text from meson_options.txtconfigure+31 -641 reply
5/5meson_options.txt: Document that "configure" reads this file, toomeson_options.txt+6 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Use meson_options.txt in the configure script

It's cumbersome to maintain the build options twice, one time in the configure script and one time in meson_options.txt. Thus let's add some logic to the configure script to look at the meson_options.txt file instead of handling every option twice.

Note: Unlike Paolo's earlier version (which can bee found on
https://patchew.org/QEMU/[email protected]/ ), this version only uses some lines of shell code to parse meson_options.txt instead of adding an additional Python or Perl script. It's likely not as robust as Paolo's version, but it's way smaller and has a way nicer diffstat.

v2:
- Improved shell code according to the suggestions of Eric
- Split the vnc change into a separate patch
- Add a comment to meson_options.txt in the new final patch

Thomas Huth (5):
configure: Add the possibility to read options from meson_options.txt meson_options.txt: Switch the default value for the vnc option to

    'auto'

configure: Remove options that can be handled via meson_options.txt
instead
configure: Get help text from meson_options.txt meson_options.txt: Document that "configure" reads this file, too

 configure         | 435 +++++++---------------------------------------
 meson_options.txt |   8 +-
 2 files changed, 65 insertions(+), 378 deletions(-)
Signature · 1 line
2.27.0