Skip to content
Snippets Groups Projects
  1. Jan 12, 2022
  2. Dec 31, 2021
  3. Dec 21, 2021
  4. Dec 18, 2021
  5. Dec 17, 2021
  6. Dec 15, 2021
  7. Dec 10, 2021
  8. Nov 08, 2021
  9. Nov 02, 2021
  10. Oct 30, 2021
  11. Oct 14, 2021
    • Paolo Bonzini's avatar
      configure: automatically parse command line for meson -D options · 3b4da132
      Paolo Bonzini authored
      
      Right now meson_options.txt lists about 90 options.  Each option
      needs code in configure to parse it and pass the option down to Meson as
      a -D command-line argument; in addition the default must be duplicated
      between configure and meson_options.txt.  This series tries to remove
      the code duplication by generating the case statement for those --enable
      and --disable options, as well as the corresponding help text.
      
      About 80% of the options can be handled completely by the new mechanism.
      Eight meson options are not of the --enable/--disable kind.  Six more need
      to be parsed in configure for various reasons documented in the patch,
      but they still have their help automatically generated.
      
      The advantages are:
      
      - less code in configure
      
      - parsing and help is more consistent (for example --enable-blobs was
        not supported)
      
      - options are described entirely in one place, meson_options.txt.
        This make it more attractive to use Meson options instead of
        hand-crafted configure options and config-host.mak
      
      A few options change name: --enable-tcmalloc and --enable-jemalloc
      become --enable-malloc={tcmalloc,jemalloc}; --disable-blobs becomes
      --disable-install-blobs; --enable-trace-backend becomes
      --enable-trace-backends.  However, the old names are allowed
      for backwards compatibility.
      
      Message-Id: <20211007130829.632254-19-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3b4da132
    • Paolo Bonzini's avatar
      configure: prepare for auto-generated option parsing · 61d63097
      Paolo Bonzini authored
      
      Prepare the configure script and Makefile for automatically generated
      help and parsing.
      
      Because we need to run the script to generate the full help, we
      cannot rely on the user supplying the path to a Python interpreter
      with --python; therefore, the introspection output is parsed into
      shell functions and stored in scripts/.  The converter is written
      in Python as standard for QEMU, and this commit contains a stub.
      
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20211007130829.632254-18-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      61d63097
    • Paolo Bonzini's avatar
      configure: accept "internal" for --enable-capstone/slirp/fdt · 03a3c0b3
      Paolo Bonzini authored
      
      Options such as "--enable-capstone=git" do not make much sense when building
      from a tarball.  Accept "internal" for consistency with the meson options.
      
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20211007130829.632254-17-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      03a3c0b3
    • Paolo Bonzini's avatar
      configure: remove deprecated --{enable, disable}-git-update · 7bdf1f5a
      Paolo Bonzini authored
      
      The options were deprecated in 6.0.  That said, we do not really have a
      formal deprecation cycle for build-time changes, since they do not affect
      users.
      
      Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-Id: <20211007130829.632254-16-pbonzini@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      7bdf1f5a
Loading