From f45481ce778f0d73cf935bbaeee32d86252444b1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 18 Dec 2019 10:27:56 +0000 Subject: toradex-kernel/u-boot-localversion: make sure version is defined Make sure TDX_VERSION is defined in case Toradex distro is not used. This avoids confusing localverisons with just a dash. Signed-off-by: Stefan Agner --- classes/toradex-kernel-localversion.bbclass | 1 + classes/toradex-u-boot-localversion.bbclass | 1 + 2 files changed, 2 insertions(+) diff --git a/classes/toradex-kernel-localversion.bbclass b/classes/toradex-kernel-localversion.bbclass index 26853e4..828b227 100644 --- a/classes/toradex-kernel-localversion.bbclass +++ b/classes/toradex-kernel-localversion.bbclass @@ -10,6 +10,7 @@ # Copyright 2014, 2015 (C) O.S. Systems Software LTDA. # Copyright 2019 (C) Toradex AG +TDX_VERSION ??= "0" SCMVERSION ??= "y" LOCALVERSION ?= "-${TDX_VERSION}" diff --git a/classes/toradex-u-boot-localversion.bbclass b/classes/toradex-u-boot-localversion.bbclass index d2b4910..153469d 100644 --- a/classes/toradex-u-boot-localversion.bbclass +++ b/classes/toradex-u-boot-localversion.bbclass @@ -11,6 +11,7 @@ # Copyright 2014 (C) O.S. Systems Software LTDA. # Copyright 2017-2019 (C) Toradex Inc. +TDX_VERSION ??= "0" SCMVERSION ??= "y" LOCALVERSION ??= "-${TDX_VERSION}" -- cgit v1.2.3