arm/fvp: don't inhibit default dependencies
PATCH 1/12 arm/fvp: don't inhibit default dependencies
The FVPs are precompiled binaries so we can theoretically avoid the default dependencies (gcc and friends), but this means that packaging doesn't succeed for non-native builds as objcopy (from binutils-cross) is needed during do_package.
Until oe-core is fixed to depend on binutils-cross, don't disable the default dependencies.
--- meta-arm/recipes-devtools/fvp/fvp-common.inc | 2 -- 1 file changed, 2 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-common.inc +0 -2
@@ -31,6 +31,4 @@ INSANE_SKIP:${PN} += "file-rdeps" # FVP brings its own standard library so don't let it be used as a shlib provider PRIVATE_LIBS = "libgcc_s.so.1 libstdc++.so.6" -INHIBIT_DEFAULT_DEPS = "1" - BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
PATCH 2/12 arm/fvp-base-*: factor out commonality to fvp-envelope.inc
The fvp-base-a-aem and fvp-base-r-aem recipes have a lot in common, so extract that into a fvp-envelope.inc file.
--- meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb | 11 +---------- meta-arm/recipes-devtools/fvp/fvp-base-r-aem.bb | 11 +---------- meta-arm/recipes-devtools/fvp/fvp-envelope.inc | 11 +++++++++++ 3 files changed, 13 insertions(+), 20 deletions(-) create mode 100644 meta-arm/recipes-devtools/fvp/fvp-envelope.inc
meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb +1 -10
@@ -1,7 +1,6 @@ -require fvp-common.inc +require fvp-envelope.inc SUMMARY = "Arm Fixed Virtual Platform - Armv-A Base RevC Architecture Envelope Model FVP" -HOMEPAGE = "https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms/arm-ecosystem-models" LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ file://license_terms/third_party_licenses.txt;md5=b40ecbbbd3409d48263437b782df6df9"
@@ -16,11 +15,3 @@ python() { if not d.getVar("FVP_BASE_A_AEM_TARBALL_URI"): raise bb.parse.SkipRecipe("FVP_BASE_A_AEM_TARBALL_URI not set") } - -do_install() { - mkdir --parents ${D}${FVPDIR} ${D}${bindir} - - cp --archive --no-preserve=ownership ${S}/Base_RevC_AEMvA_pkg/* ${D}${FVPDIR}/ - - fvp_link_binaries -}
meta-arm/recipes-devtools/fvp/fvp-base-r-aem.bb +1 -10
@@ -1,7 +1,6 @@ -require fvp-common.inc +require fvp-envelope.inc SUMMARY = "Arm Fixed Virtual Platform - Armv8-R Base Architecture Envelope Model FVP" -HOMEPAGE = "https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms/arm-ecosystem-models" LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ file://license_terms/third_party_licenses.txt;md5=3db0c4947b7e3405c40b943672d8de2f"
@@ -16,11 +15,3 @@ python() { if not d.getVar("FVP_BASE_R_AEM_TARBALL_URI"): raise bb.parse.SkipRecipe("FVP_BASE_R_AEM_TARBALL_URI not set") } - -do_install() { - mkdir --parents ${D}${FVPDIR} ${D}${bindir} - - cp --archive --no-preserve=ownership ${S}/AEMv8R_base_pkg//* ${D}${FVPDIR}/ - - fvp_link_binaries -}
meta-arm/recipes-devtools/fvp/fvp-envelope.inc new file +11 -0
@@ -0,0 +1,11 @@ +require fvp-common.inc + +HOMEPAGE = "https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms/arm-ecosystem-models" + +do_install() { + mkdir --parents ${D}${FVPDIR} ${D}${bindir} + + cp --archive --no-preserve=ownership ${S}/*_pkg/* ${D}${FVPDIR}/ + + fvp_link_binaries +}
Signature · 1 line
2.25.1
PATCH 3/12 arm/fvp-base-a-aem: use public SRC_URI
In reply to Ross BurtonThis FVP is now freely available without a login, so we can download it directly.
--- meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb +4 -11
@@ -2,16 +2,9 @@ require fvp-envelope.inc SUMMARY = "Arm Fixed Virtual Platform - Armv-A Base RevC Architecture Envelope Model FVP" LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ - file://license_terms/third_party_licenses.txt;md5=b40ecbbbd3409d48263437b782df6df9" + file://license_terms/third_party_licenses.txt;md5=3db0c4947b7e3405c40b943672d8de2f" -# This FVP cannot be downloaded directly, so download the Armv-A Base RevC AEM -# FVP yourself from the homepage and set FVP_BASE_A_AEM_TARBALL_URI appropriately -# (for example, file:///home/user/FVP_Base_RevC-2xAEMvA_11.14_21.tgz). -FVP_BASE_A_AEM_TARBALL_URI ?= "" -PV = "11.14_21" +PV = "11.15_18" -SRC_URI = "${FVP_BASE_A_AEM_TARBALL_URI};subdir=${BP}" -python() { - if not d.getVar("FVP_BASE_A_AEM_TARBALL_URI"): - raise bb.parse.SkipRecipe("FVP_BASE_A_AEM_TARBALL_URI not set") -} +SRC_URI = "https://developer.arm.com/-/media/Files/downloads/ecosystem-models/FVP_Base_RevC-2xAEMvA_${PV}.tgz;subdir=${BP}" +SRC_URI[sha256sum] = "05e474d6b8197c749c66968315fdb7059d398b279bef59787025a88219c71ae4"
Signature · 1 line
2.25.1
PATCH 4/12 arm/fvp-common: store the mangled PV as PV_URL
In reply to Ross BurtonFVP versions in the download URLs are expressed as 11.12_13, but ideally we'll use a rationalised 11.12.13 form as it's more consistant.
Add a function to transform from a all-dots form to use underscore for the final portion, and expose this version as PV_URL.
--- meta-arm/recipes-devtools/fvp/fvp-common.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta-arm/recipes-devtools/fvp/fvp-common.inc +6 -0
@@ -9,6 +9,12 @@ LICENSE = "Proprietary & Apache-2.0 & Python-2.0 & GPL-3.0-with-GCC-exception & COMPATIBLE_HOST = '(x86_64|i.86).*-linux' FVP_ARCH = "Linux64_GCC-6.4" +def get_real_pv(d): + # FVP versions are like 11.12_43 + pv = d.getVar("PV") + return "%s.%s_%s" % tuple(pv.split(".")) +PV_URL = "${@get_real_pv(d)}" + # The directory the FVP is installed into FVPDIR = "${libdir}/fvp/${BPN}"
Signature · 1 line
2.25.1
PATCH 5/12 arm/fvp-base-*-aem: use all-dots versions
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb | 4 ++-- meta-arm/recipes-devtools/fvp/fvp-base-r-aem.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb +2 -2
@@ -4,7 +4,7 @@ SUMMARY = "Arm Fixed Virtual Platform - Armv-A Base RevC Architecture Envelope M LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ file://license_terms/third_party_licenses.txt;md5=3db0c4947b7e3405c40b943672d8de2f" -PV = "11.15_18" +PV = "11.15.18" -SRC_URI = "https://developer.arm.com/-/media/Files/downloads/ecosystem-models/FVP_Base_RevC-2xAEMvA_${PV}.tgz;subdir=${BP}" +SRC_URI = "https://developer.arm.com/-/media/Files/downloads/ecosystem-models/FVP_Base_RevC-2xAEMvA_${PV_URL}.tgz;subdir=${BP}" SRC_URI[sha256sum] = "05e474d6b8197c749c66968315fdb7059d398b279bef59787025a88219c71ae4"
meta-arm/recipes-devtools/fvp/fvp-base-r-aem.bb +1 -1
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba # yourself from the homepage and set FVP_BASE_R_AEM_TARBALL_URI appropriately # (for example, file:///home/user/FVP_Base_AEMv8R_11.15_14.tgz). FVP_BASE_R_AEM_TARBALL_URI ?= "" -PV = "11.15_14" +PV = "11.15.14" SRC_URI = "${FVP_BASE_R_AEM_TARBALL_URI};subdir=${BP}" python() {
Signature · 1 line
2.25.1
PATCH 6/12 arm/fvp-ecosystem: use all-dots versions
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-ecosystem.inc | 2 +- meta-arm/recipes-devtools/fvp/fvp-n1-edge.bb | 2 +- meta-arm/recipes-devtools/fvp/fvp-sgi575.bb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-ecosystem.inc +1 -1
@@ -8,7 +8,7 @@ PV ?= "unset" SUMMARY = "Arm Fixed Virtual Platform - ${MODEL} Ecosystem Reference Design" HOMEPAGE = "https://developer.arm.com/tools-and-software/open-source-software/arm-platforms-software/arm-ecosystem-fvps" -SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV}.tgz;subdir=${BP}" +SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV_URL}.tgz;subdir=${BP}" LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ file://license_terms/third_party_licenses.txt;md5=47473b1e04b70938cf0a7ffea8ea4cc3"
meta-arm/recipes-devtools/fvp/fvp-n1-edge.bb +1 -1
@@ -2,6 +2,6 @@ require fvp-ecosystem.inc MODEL = "Neoverse-N1" MODEL_CODE = "FVP_RD_N1_edge" -PV = "11.12_43" +PV = "11.12.43" SRC_URI[sha256sum] = "e428cc44db251202bf45ae68d40832d01efbc5d0f1323f1ce46237213dd4f0fa"
meta-arm/recipes-devtools/fvp/fvp-sgi575.bb +1 -1
@@ -2,6 +2,6 @@ require fvp-ecosystem.inc MODEL = "SGI-575" MODEL_CODE = "FVP_CSS_SGI-575" -PV = "11.12_59" +PV = "11.12.59" SRC_URI[sha256sum] = "86c7a16d83b0801278b4a3d05c8d42c4955ed22a0dbea3c583798fb971bc425c"
Signature · 1 line
2.25.1
PATCH 7/12 arm/fvp: add upstream version checking
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb | 4 +++- meta-arm/recipes-devtools/fvp/fvp-ecosystem.inc | 3 +++ meta-arm/recipes-devtools/fvp/fvp-envelope.inc | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-)
meta-arm/recipes-devtools/fvp/fvp-base-a-aem.bb +3 -1
@@ -6,5 +6,7 @@ LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba PV = "11.15.18" -SRC_URI = "https://developer.arm.com/-/media/Files/downloads/ecosystem-models/FVP_Base_RevC-2xAEMvA_${PV_URL}.tgz;subdir=${BP}" +SRC_URI = "https://developer.arm.com/-/media/Files/downloads/ecosystem-models/${MODEL_CODE}_${PV_URL}.tgz;subdir=${BP}" SRC_URI[sha256sum] = "05e474d6b8197c749c66968315fdb7059d398b279bef59787025a88219c71ae4" + +MODEL_CODE = "FVP_Base_RevC-2xAEMvA"
meta-arm/recipes-devtools/fvp/fvp-ecosystem.inc +3 -0
@@ -13,6 +13,9 @@ SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloa LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \ file://license_terms/third_party_licenses.txt;md5=47473b1e04b70938cf0a7ffea8ea4cc3" +UPSTREAM_CHECK_URI = "${HOMEPAGE}" +UPSTREAM_CHECK_REGEX = "${MODEL_CODE}_(?P<pver>(\d+[\.\-_]*)+).tgz" + do_install() { mkdir --parents ${D}${FVPDIR} ${D}${bindir}
meta-arm/recipes-devtools/fvp/fvp-envelope.inc +3 -0
@@ -2,6 +2,9 @@ require fvp-common.inc HOMEPAGE = "https://developer.arm.com/tools-and-software/simulation-models/fixed-virtual-platforms/arm-ecosystem-models" +UPSTREAM_CHECK_URI = "${HOMEPAGE}" +UPSTREAM_CHECK_REGEX = "${MODEL_CODE}_(?P<pver>(\d+[\.\-_]*)+).tgz" + do_install() { mkdir --parents ${D}${FVPDIR} ${D}${bindir}
Signature · 1 line
2.25.1
PATCH 8/12 arm/fvp: add corstone500 FVP
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-corstone500.bb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meta-arm/recipes-devtools/fvp/fvp-corstone500.bb
meta-arm/recipes-devtools/fvp/fvp-corstone500.bb new file +7 -0
@@ -0,0 +1,7 @@ +require fvp-ecosystem.inc + +MODEL = "Corstone-500" +MODEL_CODE = "FVP_Corstone_500" +PV = "11.12.59" + +SRC_URI[sha256sum] = "26f0fbb52de2ccdb4c7b40b6f4ddb5eabdcb8173775fdd11c9a12173326f8614"
Signature · 1 line
2.25.1
PATCH 9/12 arm/fvp: add corstone700 FVP
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-corstone700.bb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 meta-arm/recipes-devtools/fvp/fvp-corstone700.bb
meta-arm/recipes-devtools/fvp/fvp-corstone700.bb new file +9 -0
@@ -0,0 +1,9 @@ +require fvp-ecosystem.inc + +MODEL = "Corstone-700" +MODEL_CODE = "FVP_Corstone_700" +PV = "11.10.47" + +# Temporary SRC_URI as the URL structure is unconventional +SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/Corstone-700-updated-11-10-47/${MODEL_CODE}_${PV_URL}.tgz;subdir=${BP}" +SRC_URI[sha256sum] = "255207771864edeca2610958811d30e458c03a2db01950355a455513bad782ec"
Signature · 1 line
2.25.1
PATCH 10/12 arm/fvp: add Total Compute FVP
In reply to Ross Burton--- meta-arm/recipes-devtools/fvp/fvp-tc0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-arm/recipes-devtools/fvp/fvp-tc0.bb
meta-arm/recipes-devtools/fvp/fvp-tc0.bb new file +10 -0
@@ -0,0 +1,10 @@ +require fvp-ecosystem.inc + +MODEL = "TotalCompute" +MODEL_CODE = "FVP_TC0" +PV = "11.15.20" + +SRC_URI[sha256sum] = "792ddb425eba0714a1590aa8e404845b7654758c663745693216ae1343ceef2d" + +LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=a50d186fffa51ed55599183aad911298 \ + file://license_terms/third_party_licenses.txt;md5=3db0c4947b7e3405c40b943672d8de2f"
Signature · 1 line
2.25.1
PATCH 11/12 CI: add FVP-EULA to the license whitelist
In reply to Ross BurtonSo that we can build and use FVP packages in the CI, agree to the FVP EULA.
--- ci/base.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ci/base.yml +1 -1
@@ -28,7 +28,7 @@ local_conf_header: base: | CONF_VERSION = "2" PACKAGE_CLASSES = "package_ipk" - LICENSE_FLAGS_WHITELIST += "armcompiler" + LICENSE_FLAGS_WHITELIST += "armcompiler Arm-FVP-EULA" PACKAGECONFIG:remove:pn-qemu-system-native = "gtk+ sdl" EXTRA_IMAGE_FEATURES:append = " debug-tweaks" BB_NUMBER_THREADS = "16"
Signature · 1 line
2.25.1
PATCH 12/12 CI: add a job to build the FVP packages
In reply to Ross BurtonThis doesn't execute anything but simply checks that the publically available FVPs can be downloaded and packaged.
--- .gitlab-ci.yml | 3 +++ ci/fvps.yml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ci/fvps.yml
.gitlab-ci.yml +3 -0
@@ -113,6 +113,9 @@ fvp-base-arm32/external-gccarm: fvp-baser-aemv8r64: extends: .build +fvps: + extends: .build + gem5-arm64: extends: .build
ci/fvps.yml new file +20 -0
@@ -0,0 +1,20 @@ +# Simple target to build the FVPs that are publically available + +header: + version: 9 + includes: + - base.yml + +machine: qemuarm64 + +local_conf_header: + sdk: | + SDKMACHINE = "x86_64" + +target: + - nativesdk-fvp-base-a-aem + - nativesdk-fvp-n1-edge + - nativesdk-fvp-sgi575 + - nativesdk-fvp-corstone500 + - nativesdk-fvp-corstone700 + - nativesdk-fvp-tc0
Signature · 1 line
2.25.1