ClangBuiltLinux / boot-utils

Collection of files for booting Linux kernels
26 stars 7 forks source link

boot-qemu.py: Use tuples for Linux and QEMU versions #78

Closed nathanchance closed 1 year ago

nathanchance commented 1 year ago

There is no reason to roll our own versioning format when we can automatically generate tuples for the versions to allow more natural and obvious comparisons, similar to sys.version_info. For example:

    if qemu_ver_code < 602050:

vs.

    if qemu_ver < (6, 2, 50):