configure: move target-specific defaults to an external machine file

Enable Windows-specific defaults with a machine file, so that related
options can be automatically parsed and included in the help message.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2023-10-16 08:18:08 +02:00
parent 050b439887
commit c36dd41ba2
4 changed files with 34 additions and 23 deletions

View file

@ -28,7 +28,6 @@ import sys
SKIP_OPTIONS = {
"default_devices",
"fuzzing_engine",
"qemu_suffix",
"smbd",
}
@ -40,6 +39,7 @@ OPTION_NAMES = {
"malloc": "enable-malloc",
"pkgversion": "with-pkgversion",
"qemu_firmwarepath": "firmwarepath",
"qemu_suffix": "with-suffix",
"trace_backends": "enable-trace-backends",
"trace_file": "with-trace-file",
}
@ -52,6 +52,7 @@ AUTO_OPTIONS = {
BUILTIN_OPTIONS = {
"b_coverage",
"b_lto",
"bindir",
"datadir",
"debug",
"includedir",
@ -60,6 +61,7 @@ BUILTIN_OPTIONS = {
"localedir",
"localstatedir",
"mandir",
"prefix",
"strip",
"sysconfdir",
}