diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2022-10-24 12:32:23 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-26 12:28:39 +0100 |
commit | bf8655e116a93e37d5767de7f251db8c4f773930 (patch) | |
tree | ce17df0b5bfd910add709ab422181748929b25e3 /meta/recipes-core | |
parent | c43df5b5cc6ed89d68e3140bf662ed2111769248 (diff) | |
download | poky-bf8655e116a93e37d5767de7f251db8c4f773930.tar.gz |
os-release: replace DISTRO_CODENAME with VERSION_CODENAME
Latter is the /etc/os-release standard to report distro codenames
like "langdale".
https://www.freedesktop.org/software/systemd/man/os-release.html#VERSION_CODENAME=
(From OE-Core rev: 2565b435176a16aca5b747044cc3643d845f6486)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/os-release/os-release.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index caa2ed25aa..15194df61b 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb | |||
@@ -13,7 +13,7 @@ do_configure[noexec] = "1" | |||
13 | # Other valid fields: BUILD_ID ID_LIKE ANSI_COLOR CPE_NAME | 13 | # Other valid fields: BUILD_ID ID_LIKE ANSI_COLOR CPE_NAME |
14 | # HOME_URL SUPPORT_URL BUG_REPORT_URL | 14 | # HOME_URL SUPPORT_URL BUG_REPORT_URL |
15 | OS_RELEASE_FIELDS = "\ | 15 | OS_RELEASE_FIELDS = "\ |
16 | ID ID_LIKE NAME VERSION VERSION_ID PRETTY_NAME DISTRO_CODENAME \ | 16 | ID ID_LIKE NAME VERSION VERSION_ID VERSION_CODENAME PRETTY_NAME \ |
17 | " | 17 | " |
18 | OS_RELEASE_UNQUOTED_FIELDS = "ID VERSION_ID VARIANT_ID" | 18 | OS_RELEASE_UNQUOTED_FIELDS = "ID VERSION_ID VARIANT_ID" |
19 | 19 | ||
@@ -21,6 +21,7 @@ ID = "${DISTRO}" | |||
21 | NAME = "${DISTRO_NAME}" | 21 | NAME = "${DISTRO_NAME}" |
22 | VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}" | 22 | VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}" |
23 | VERSION_ID = "${DISTRO_VERSION}" | 23 | VERSION_ID = "${DISTRO_VERSION}" |
24 | VERSION_CODENAME = "${DISTRO_CODENAME}" | ||
24 | PRETTY_NAME = "${DISTRO_NAME} ${VERSION}" | 25 | PRETTY_NAME = "${DISTRO_NAME} ${VERSION}" |
25 | BUILD_ID ?= "${DATETIME}" | 26 | BUILD_ID ?= "${DATETIME}" |
26 | BUILD_ID[vardepsexclude] = "DATETIME" | 27 | BUILD_ID[vardepsexclude] = "DATETIME" |