summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-18 15:41:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-23 12:08:56 +0000
commit767eb1c71c4fbb95dff6aa59b9a87211ef663d7c (patch)
treef87325ed053d8ccb49d05f5a21e4c86a80c13817 /documentation
parentb04eda74476fcaaee729ead79322694b3fb5937e (diff)
downloadpoky-767eb1c71c4fbb95dff6aa59b9a87211ef663d7c.tar.gz
set_versions: Add support for setting POKYVERSION found in older releases
(From yocto-docs rev: 9c7a4318920d468cca10448901868bad080cd895) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rwxr-xr-xdocumentation/set_versions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 4ee28d0944..96e0d34697 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -39,6 +39,13 @@ bitbake_mapping = {
39 "dunfell" : "1.46", 39 "dunfell" : "1.46",
40} 40}
41 41
42# 3.4 onwards doesn't have poky version
43poky_mapping = {
44 "3.3" : "25.0",
45 "3.2" : "24.0",
46 "3.1" : "23.0",
47}
48
42ourversion = None 49ourversion = None
43ourseries = None 50ourseries = None
44ourbranch = None 51ourbranch = None
@@ -126,6 +133,10 @@ replacements = {
126 "BITBAKE_SERIES" : bitbakeversion, 133 "BITBAKE_SERIES" : bitbakeversion,
127} 134}
128 135
136if release_series[ourseries] in poky_mapping:
137 pokyversion = poky_mapping[release_series[ourseries]] + "." + ourversion.rsplit(".", 1)[1]
138 replacements["POKYVERSION"] = pokyversion
139
129with open("poky.yaml.in", "r") as r, open("poky.yaml", "w") as w: 140with open("poky.yaml.in", "r") as r, open("poky.yaml", "w") as w:
130 lines = r.readlines() 141 lines = r.readlines()
131 for line in lines: 142 for line in lines: