diff mbox series

[1/3] poky.yaml.in: add DISTRO_RELEASE_SERIES

Message ID 20251127-bitbake-setup-updates-v1-1-75ac1e490a40@bootlin.com
State New
Headers show
Series bitbake-setup updates | expand

Commit Message

Antonin Godard Nov. 27, 2025, 4:37 p.m. UTC
The DISTRO_RELEASE_SERIES represents the release series in numerical
format. So for whinlatter, it will always equal "5.3", no matter what
the latest tag or patch version is.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/poky.yaml.in    | 2 ++
 documentation/set_versions.py | 1 +
 2 files changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/documentation/poky.yaml.in b/documentation/poky.yaml.in
index 7a19545d1..810efd4d5 100644
--- a/documentation/poky.yaml.in
+++ b/documentation/poky.yaml.in
@@ -11,6 +11,8 @@  DISTRO : "5.2"
 # represent the latest HEAD revision on the branch). DISTRO_LATEST_TAG should
 # always point to an existing tag.
 DISTRO_LATEST_TAG : "5.2"
+# The DISTRO_RELEASE_SERIES omits the patch version (so always X.Y).
+DISTRO_RELEASE_SERIES : "5.2"
 DISTRO_NAME_NO_CAP : "walnascar"
 DISTRO_NAME : "Walnascar"
 DISTRO_NAME_NO_CAP_MINUS_ONE : "styhead"
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index be05ef323..d146f93bb 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -190,6 +190,7 @@  print("Release series calculated to be %s" % ourseries)
 replacements = {
     "DISTRO" : ourversion,
     "DISTRO_LATEST_TAG": latesttag,
+    "DISTRO_RELEASE_SERIES": release_series[ourseries],
     "DISTRO_NAME_NO_CAP" : ourseries,
     "DISTRO_NAME" : ourseries.capitalize(),
     "DISTRO_NAME_NO_CAP_MINUS_ONE" : previousseries[0],