From 2d72743852b86a53d0ba89467c87ece9d3ddba54 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 2 Dec 2019 13:46:28 +0000 Subject: 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 --- conf/distro/include/tdx-base.inc | 4 ++++ 1 file changed, 4 insertions(+) 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}" -- cgit v1.2.3