Il 08/03/2014 19:47, Leandro Dorileo ha scritto:
Remove the arg parsing implementations using getopt and use qemu-arg.
Also remove the qemu-img-cmds.hx since it's now generated on building time,
adapted the build system to generate the .hx file using the qemu-img itself
using the qemu-arg internal command generate-hx.
Signed-off-by: Leandro Dorileo <l...@dorileo.org>
This makes it much harder to cross-compile QEMU. Also, I wonder how
hard it would be to apply the same approach to the main QEMU binary
which already uses QemuOpts for its more complex arguments; for sure you
risk that accumulating multiple layers of abstractions makes the code
even harder to read than it is now.
Paolo