From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: docs@lists.yoctoproject.org
Subject: [PATCH 3/5] set_versions: Add support for setting POKYVERSION found in older releases
Date: Mon, 21 Mar 2022 17:44:53 +0000 [thread overview]
Message-ID: <20220321174455.1189669-4-richard.purdie@linuxfoundation.org> (raw)
In-Reply-To: <20220321174455.1189669-1-richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
documentation/set_versions.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index a4bfaf1bf..a121125ac 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -34,6 +34,13 @@ bitbake_mapping = {
"dunfell" : "1.46",
}
+# 3.4 onwards doesn't have poky version
+poky_mapping = {
+ "3.3" : "25.0",
+ "3.2" : "24.0",
+ "3.1" : "23.0",
+}
+
ourversion = None
ourseries = None
ourbranch = None
@@ -121,6 +128,10 @@ replacements = {
"BITBAKE_SERIES" : bitbakeversion,
}
+if release_series[ourseries] in poky_mapping:
+ pokyversion = poky_mapping[release_series[ourseries]] + "." + ourversion.rsplit(".", 1)[1]
+ replacements["POKYVERSION"] = pokyversion
+
with open("poky.yaml.in", "r") as r, open("poky.yaml", "w") as w:
lines = r.readlines()
for line in lines:
--
2.32.0
next prev parent reply other threads:[~2022-03-21 17:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 17:44 [PATCH 0/5 v2] Proposed docs version changes Richard Purdie
2022-03-21 17:44 ` [PATCH 1/5] Makefile/set_versions: Allow poky.yaml to be autogenerated Richard Purdie
[not found] ` <86e1ecf9-09da-9cd7-347f-637628cbbba4@bootlin.com>
2022-03-23 9:59 ` [docs] " Quentin Schulz
2022-03-21 17:44 ` [PATCH 2/5] conf.py/set_versions/poky.yaml: Set version in conf.py from poky.yaml Richard Purdie
2022-03-21 17:44 ` Richard Purdie [this message]
2022-03-21 17:44 ` [PATCH 4/5] set_versions/switchers.js: Allow switchers.js version information to be autogenerated Richard Purdie
2022-03-21 17:44 ` [PATCH 5/5] set_versions: Various improvements Richard Purdie
2022-03-21 21:56 ` [docs] [PATCH 0/5 v2] Proposed docs version changes Nicolas Dechesne
[not found] ` <ea41470f551f80509c947bf074eee5b29777953e.camel@linuxfoundation.org>
2022-03-22 13:58 ` Quentin Schulz
2022-03-22 14:25 ` Richard Purdie
2022-03-22 14:33 ` Quentin Schulz
[not found] ` <5bdb0cfb67587ad347f17bb59b0ea1b3a3e110b4.camel@linuxfoundation.org>
2022-03-22 14:59 ` Quentin Schulz
[not found] ` <16DEBBB55476AD52.11857@lists.yoctoproject.org>
[not found] ` <7b263ab8905bc5fe6d2fe6c8cf65bf2583f9ac49.camel@linuxfoundation.org>
2022-03-23 0:47 ` Michael Halstead
2022-03-23 10:15 ` Richard Purdie
2022-03-23 10:19 [PATCH 1/5] Makefile/set_versions: Allow poky.yaml to be autogenerated Richard Purdie
2022-03-23 10:19 ` [PATCH 3/5] set_versions: Add support for setting POKYVERSION found in older releases Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220321174455.1189669-4-richard.purdie@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=docs@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.