diff options
| -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: |
