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 <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton authored and Jon Mason committed 2022-03-25 10:10:22 -04:00
1 parent 22282ea893
commit d47e6a89e1
1 file changed
+4
@@ -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