summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2019-12-02 13:46:28 +0000
committerStefan Agner <stefan.agner@toradex.com>2019-12-16 09:34:33 +0000
commit2d72743852b86a53d0ba89467c87ece9d3ddba54 (patch)
tree32a07bb55d64d32d733dc4c16a60382152c706bb /conf
parente1cc68aa31fd0e09ccdb893871b5f08f63e27a8b (diff)
tdx-base: introduce version number for software artifact
Add TDX_VERSION which can be used by Toradex customized software artifacts like U-Boot or the Linux kernel. This version number does not contain a date timestamp to prevent unnecessary rebuilds. It is assumed that the software artifact adds a build number (e.g. git hash). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'conf')
-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}"