1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-06 14:50:03 +00:00

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
2022-03-25 13:48:49 +00:00
committed by Jon Mason
parent 22282ea893
commit d47e6a89e1
@@ -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