From d47e6a89e1b8694a8c26edf23a8713118cfdd815 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 25 Mar 2022 13:48:49 +0000 Subject: [PATCH] arm/fvp: add more helper variables for the versioning Add more helper variables for the FVP version to help construct URLs. If PV is 1.2.3, then VERSION is 1.2 and BUILD is 3. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-devtools/fvp/fvp-common.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-arm/recipes-devtools/fvp/fvp-common.inc b/meta-arm/recipes-devtools/fvp/fvp-common.inc index cf6cad04..f7cdca80 100644 --- a/meta-arm/recipes-devtools/fvp/fvp-common.inc +++ b/meta-arm/recipes-devtools/fvp/fvp-common.inc @@ -15,6 +15,10 @@ def get_real_pv(d): # FVP versions are like 11.12_43 pv = d.getVar("PV") return "%s.%s_%s" % tuple(pv.split(".")) + +# If PV is 1.2.3, VERSION=1.2, BUILD=3, PV_URL=1.2_3. +VERSION = "${@oe.utils.trim_version(d.getVar('PV', -1))}" +BUILD = "${@d.getVar('PV').split('.')[-1]}" PV_URL = "${@get_real_pv(d)}" # The directory the FVP is installed into