cmake: armfvp: Add FVP min version check
After the fix of FVP_BaseR_AEMv8R booting issue, the minimum required version of FVP will be 11.16.16. Add an FVP minimal required version check in building time. When the ARMFVP_MIN_VERSION is set in board cmake file, the version check will be enabled and print a warning. Signed-off-by: Jaxson Han <jaxson.han@arm.com> Change-Id: Ibbade0c328b5e91b8830fb35cba6917f08aabbda
This commit is contained in:
parent
fd231e32e9
commit
3c1f3197e2
1 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,20 @@ find_program(
|
||||||
NAMES ${ARMFVP_BIN_NAME}
|
NAMES ${ARMFVP_BIN_NAME}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ((NOT "${ARMFVP}" STREQUAL "ARMFVP-NOTFOUND") AND (DEFINED ARMFVP_MIN_VERSION))
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${ARMFVP} --version
|
||||||
|
OUTPUT_VARIABLE out
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
)
|
||||||
|
string(REPLACE "\n" "" out ${out})
|
||||||
|
string(REGEX MATCH "[0-9]+\.[0-9]+\.[0-9]+" armfvp_version ${out})
|
||||||
|
if(${armfvp_version} VERSION_LESS ${ARMFVP_MIN_VERSION})
|
||||||
|
message(WARNING "Found FVP version is \"${armfvp_version}\", "
|
||||||
|
"the minimum required by the current board is \"${ARMFVP_MIN_VERSION}\".")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_ARMV8_A_NS)
|
if(CONFIG_ARMV8_A_NS)
|
||||||
foreach(filetype BL1 FIP)
|
foreach(filetype BL1 FIP)
|
||||||
if ((NOT DEFINED ARMFVP_${filetype}_FILE) AND (EXISTS "$ENV{ARMFVP_${filetype}_FILE}"))
|
if ((NOT DEFINED ARMFVP_${filetype}_FILE) AND (EXISTS "$ENV{ARMFVP_${filetype}_FILE}"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue