From dbc864abf041bff3f29f54dfaea2f0b445cf3bb1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 9 Jun 2020 08:50:59 +0000 Subject: tdx-base: use separate variable for version components Use separate variables for version components. This is useful to form the new OSTree branch names which use the major version only. Related-to: TOR-1107 Signed-off-by: Stefan Agner (cherry picked from commit 3f69c5d786d0677ff1f1d959e5e8e482a4e4148b) --- conf/distro/include/tdx-base.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/distro/include/tdx-base.inc b/conf/distro/include/tdx-base.inc index f522c8b..905043d 100644 --- a/conf/distro/include/tdx-base.inc +++ b/conf/distro/include/tdx-base.inc @@ -23,7 +23,10 @@ TDX_BUILD ?= "+build.${TDX_BUILDNBR}" TDX_MATRIX_BUILD_TIME ?= "${DATETIME}" TDX_MATRIX_BUILD_TIME[vardepsexclude] = "DATETIME" TDX_PRERELEASE ?= "${@get_tdx_prerelease(d.getVar('TDX_PURPOSE'), d.getVar('TDX_MATRIX_BUILD_TIME'))}" -TDX_RELEASE ?= "0.0.0" +TDX_MAJOR ?= "0" +TDX_MINOR ?= "0" +TDX_PATCH ?= "0" +TDX_RELEASE ?= "${TDX_MAJOR}.${TDX_MINOR}.${TDX_PATCH}" # Toradex Version number without date for U-Boot/Kernel and other Toradex # specific software artifacts. -- cgit v1.2.3