diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-18 15:41:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-23 12:08:56 +0000 |
commit | 767eb1c71c4fbb95dff6aa59b9a87211ef663d7c (patch) | |
tree | f87325ed053d8ccb49d05f5a21e4c86a80c13817 /documentation | |
parent | b04eda74476fcaaee729ead79322694b3fb5937e (diff) | |
download | poky-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-x | documentation/set_versions.py | 11 |
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 | ||
43 | poky_mapping = { | ||
44 | "3.3" : "25.0", | ||
45 | "3.2" : "24.0", | ||
46 | "3.1" : "23.0", | ||
47 | } | ||
48 | |||
42 | ourversion = None | 49 | ourversion = None |
43 | ourseries = None | 50 | ourseries = None |
44 | ourbranch = None | 51 | ourbranch = None |
@@ -126,6 +133,10 @@ replacements = { | |||
126 | "BITBAKE_SERIES" : bitbakeversion, | 133 | "BITBAKE_SERIES" : bitbakeversion, |
127 | } | 134 | } |
128 | 135 | ||
136 | if release_series[ourseries] in poky_mapping: | ||
137 | pokyversion = poky_mapping[release_series[ourseries]] + "." + ourversion.rsplit(".", 1)[1] | ||
138 | replacements["POKYVERSION"] = pokyversion | ||
139 | |||
129 | with open("poky.yaml.in", "r") as r, open("poky.yaml", "w") as w: | 140 | with 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: |