|
@@ -88,7 +88,7 @@
|
|
#include "qapi/qobject-input-visitor.h"
|
|
#include "qapi/qobject-input-visitor.h"
|
|
#include "qemu/option.h"
|
|
#include "qemu/option.h"
|
|
#include "qemu/config-file.h"
|
|
#include "qemu/config-file.h"
|
|
-#include "qemu-options.h"
|
|
|
|
|
|
+#include "qemu/qemu-options.h"
|
|
#include "qemu/main-loop.h"
|
|
#include "qemu/main-loop.h"
|
|
#ifdef CONFIG_VIRTFS
|
|
#ifdef CONFIG_VIRTFS
|
|
#include "fsdev/qemu-fsdev.h"
|
|
#include "fsdev/qemu-fsdev.h"
|
|
@@ -854,8 +854,17 @@ static void help(int exitcode)
|
|
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
|
"'disk_image' is a raw hard disk image for IDE hard disk 0\n\n",
|
|
error_get_progname());
|
|
error_get_progname());
|
|
|
|
|
|
-#define QEMU_OPTIONS_GENERATE_HELP
|
|
|
|
-#include "qemu-options-wrapper.h"
|
|
|
|
|
|
+#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
|
+ if ((arch_mask) & arch_type) \
|
|
|
|
+ fputs(opt_help, stdout);
|
|
|
|
+
|
|
|
|
+#define ARCHHEADING(text, arch_mask) \
|
|
|
|
+ if ((arch_mask) & arch_type) \
|
|
|
|
+ puts(stringify(text));
|
|
|
|
+
|
|
|
|
+#define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
|
|
|
|
+
|
|
|
|
+#include "qemu-options.def"
|
|
|
|
|
|
printf("\nDuring emulation, the following keys are useful:\n"
|
|
printf("\nDuring emulation, the following keys are useful:\n"
|
|
"ctrl-alt-f toggle full screen\n"
|
|
"ctrl-alt-f toggle full screen\n"
|
|
@@ -880,8 +889,13 @@ typedef struct QEMUOption {
|
|
|
|
|
|
static const QEMUOption qemu_options[] = {
|
|
static const QEMUOption qemu_options[] = {
|
|
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },
|
|
{ "h", 0, QEMU_OPTION_h, QEMU_ARCH_ALL },
|
|
-#define QEMU_OPTIONS_GENERATE_OPTIONS
|
|
|
|
-#include "qemu-options-wrapper.h"
|
|
|
|
|
|
+
|
|
|
|
+#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
|
+ { option, opt_arg, opt_enum, arch_mask },
|
|
|
|
+#define DEFHEADING(text)
|
|
|
|
+#define ARCHHEADING(text, arch_mask)
|
|
|
|
+
|
|
|
|
+#include "qemu-options.def"
|
|
{ NULL },
|
|
{ NULL },
|
|
};
|
|
};
|
|
|
|
|