Skip to contentSkip to conversation

arm/edk2-basetools: add UPSTREAM_CHECK logic

PATCH Applied Jon Mason 2 participants 5 messages May 1, 2024 – May 2, 2024

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/4 arm/edk2-basetools: add UPSTREAM_CHECK logic

Currently, 'devtool check-upgrade-status' returns UNKNOWN_BROKEN. Add regex to return the correct value.

---
 meta-arm/recipes-bsp/uefi/edk2-basetools-native_202402.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-arm/recipes-bsp/uefi/edk2-basetools-native_202402.bb +2 -0
index bd840967314e..9a1086fc5b24 100644
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
 
 SRCREV = "edc6681206c1a8791981a2f911d2fb8b3d2f5768"
 
+UPSTREAM_CHECK_GITTAGREGEX = "^edk2-stable(?P<pver>\d+)$"
+
 S = "${WORKDIR}/git"
 
 inherit native
Signature · 1 line
2.39.3 (Apple Git-146)
author
#1 lore raw

PATCH 2/4 arm/boot-wrapper-aarch64: add to fvp-base CI

Add boot-wrapper-aarch64 to fvp-base CI so that it can be covered by CI and added to the update-report

---
 ci/fvp-base.yml                                               | 4 ++++
 .../boot-wrapper-aarch64/boot-wrapper-aarch64_%.bbappend      | 1 +
 2 files changed, 5 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/boot-wrapper-aarch64_%.bbappend
ci/fvp-base.yml +4 -0
index d71d33e4e449..bbc6c44db3be 100644
@@ -7,3 +7,7 @@ header:
     - ci/fvp.yml
 
 machine: fvp-base
+
+target:
+  - core-image-sato
+  - boot-wrapper-aarch64
meta-arm-bsp/recipes-bsp/boot-wrapper-aarch64/boot-wrapper-aarch64_%.bbappend new file +1 -0
new file mode 100644
index 000000000000..0e2812eab52d
@@ -0,0 +1 @@
+COMPATIBLE_MACHINE:fvp-base = "fvp-base"
Signature · 1 line
2.39.3 (Apple Git-146)
author
#2 lore raw

PATCH 3/4 arm/fvp-corstone1000: tweak the versioning

In reply to Jon Mason

Modify the versioning to get it to play nice with devtool check-upgrade-status

---
 meta-arm/recipes-devtools/fvp/fvp-corstone1000.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-arm/recipes-devtools/fvp/fvp-corstone1000.bb +4 -2
index 4ac9a6ca5d7a..aef9edde510d 100644
@@ -2,12 +2,14 @@ require fvp-ecosystem.inc
 
 MODEL = "Corstone-1000"
 MODEL_CODE = "FVP_Corstone_1000"
-PV = "11.23_25"
+PV = "11.23.25"
 
-SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
+SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV_URL}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
 SRC_URI[fvp-aarch64.sha256sum] = "e299e81d5fa8b3d2afee0850fd03be31c1a1c3fad07f79849c63e46ee5e36acc"
 SRC_URI[fvp-x86_64.sha256sum] = "ec34c9564ccb5b1eb62fc2757673343a353db1d116a7cb1b5f82f9d985d99cdf"
 
+UPSTREAM_CHECK_REGEX = "${MODEL_CODE}_(?P<pver>(\d+[\.\-_]*)+)_${FVP_ARCH}\.tgz"
+
 LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
                     file://license_terms/third_party_licenses/third_party_licenses.txt;md5=0c32ac6f58ebff83065105042ab98211"
 
Signature · 1 line
2.39.3 (Apple Git-146)
author
#3 lore raw

PATCH 4/4 arm/fvp-base-a-aem: disable version checking

In reply to Jon Mason

Recent changes to the FVP Base homepage have caused it to no longer be searchable with the current Yocto tooling. Disable it to prevent issues with devtool check-upgrade-status.

---
 meta-arm/recipes-devtools/fvp/fvp-base-a-aem_11.25.15.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-arm/recipes-devtools/fvp/fvp-base-a-aem_11.25.15.bb +3 -0
index 4dd254a21f2e..eab2255f6f3c 100644
@@ -8,6 +8,9 @@ LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba
 SRC_URI[fvp-aarch64.sha256sum] = "22096fc2267ad776abe0ff32d0d3b870c9fae10036d9c16f4f0fe4a64487a11e"
 SRC_URI[fvp-x86_64.sha256sum] = "5f33707a1bdaa96a933b89949f28643110ad80ac9835a75f139c200b64a394dc"
 
+# The CSS used in the FVP homepage make it too difficult to query with the tooling currently in Yocto
+UPSTREAM_VERSION_UNKNOWN = "1"
+
 MODEL_CODE = "FVP_Base_RevC-2xAEMvA"
 
 COMPATIBLE_HOST = "(aarch64|x86_64).*-linux"
Signature · 1 line
2.39.3 (Apple Git-146)
Applied
#4 lore raw
In reply to Jon Mason
Quoted 4 lines · Jon Mason

Currently, 'devtool check-upgrade-status' returns UNKNOWN_BROKEN. Add regex to return the correct value.

Applied, thanks!

[1/4] arm/edk2-basetools: add UPSTREAM_CHECK logic

      commit: 54b5c5d1dae177ee18c77d70e4d18fd964a436fd
[2/4] arm/boot-wrapper-aarch64: add to fvp-base CI
      commit: 950e191d7b2183c308efdfb10a2c42705776bb6f
[3/4] arm/fvp-corstone1000: tweak the versioning
      commit: f9025699f7d1cbbe8125ce57831448e75b8c1b90
[4/4] arm/fvp-base-a-aem: disable version checking
      commit: 7889ce020647d4d6a871a377b540c417fcb5d225

Best regards,

Signature · 1 line
Jon Mason <[email protected]>