summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2022-10-24 12:32:23 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-26 12:28:39 +0100
commitbf8655e116a93e37d5767de7f251db8c4f773930 (patch)
treece17df0b5bfd910add709ab422181748929b25e3 /meta/recipes-core
parentc43df5b5cc6ed89d68e3140bf662ed2111769248 (diff)
downloadpoky-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.bb3
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
15OS_RELEASE_FIELDS = "\ 15OS_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"
18OS_RELEASE_UNQUOTED_FIELDS = "ID VERSION_ID VARIANT_ID" 18OS_RELEASE_UNQUOTED_FIELDS = "ID VERSION_ID VARIANT_ID"
19 19
@@ -21,6 +21,7 @@ ID = "${DISTRO}"
21NAME = "${DISTRO_NAME}" 21NAME = "${DISTRO_NAME}"
22VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}" 22VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}"
23VERSION_ID = "${DISTRO_VERSION}" 23VERSION_ID = "${DISTRO_VERSION}"
24VERSION_CODENAME = "${DISTRO_CODENAME}"
24PRETTY_NAME = "${DISTRO_NAME} ${VERSION}" 25PRETTY_NAME = "${DISTRO_NAME} ${VERSION}"
25BUILD_ID ?= "${DATETIME}" 26BUILD_ID ?= "${DATETIME}"
26BUILD_ID[vardepsexclude] = "DATETIME" 27BUILD_ID[vardepsexclude] = "DATETIME"