mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
include/hw/boards: add warning about changing deprecation logic
If we change the deprecation logic in include/hw/boards.h, we must make a corresponding change to docs/conf.py and docs/about/deprecated.rst. Add comments to these files as a warning to future maintainers to keep these files in sync. Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
83e256c0df
commit
3fbb0a1397
2 changed files with 9 additions and 1 deletions
|
@ -136,6 +136,10 @@ if micro >= 50:
|
|||
else:
|
||||
minor += 1
|
||||
|
||||
# These thresholds must match the constants
|
||||
# MACHINE_VER_DELETION_MAJOR & MACHINE_VER_DEPRECATION_MAJOR
|
||||
# defined in include/hw/boards.h and the introductory text in
|
||||
# docs/about/deprecated.rst
|
||||
ver_machine_deprecation_version = "%d.%d.0" % (major - 3, minor)
|
||||
ver_machine_deletion_version = "%d.%d.0" % (major - 6, minor)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue