summaryrefslogtreecommitdiff
path: root/conf/distro/include/tdx-base.inc
diff options
context:
space:
mode:
Diffstat (limited to 'conf/distro/include/tdx-base.inc')
-rw-r--r--conf/distro/include/tdx-base.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/distro/include/tdx-base.inc b/conf/distro/include/tdx-base.inc
index 869e3f6..8775362 100644
--- a/conf/distro/include/tdx-base.inc
+++ b/conf/distro/include/tdx-base.inc
@@ -25,6 +25,10 @@ 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"
+# Toradex Version number without date for U-Boot/Kernel and other Toradex
+# specific software artifacts.
+TDX_VERSION ?= "${TDX_RELEASE}${@'' if d.getVar('TDX_PURPOSE') == 'Release' else '-devel'}"
+
# Complete image version with date and build number
DISTRO_VERSION = "${TDX_RELEASE}${TDX_PRERELEASE}${TDX_BUILD}"