Skip to contentSkip to conversation

arm/edk2-firmware: Fix branch name variables

PATCH Applied Jon Mason 2 participants 4 messages Mar 28, 2025 – Apr 2, 2025

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/3 arm/edk2-firmware: Fix branch name variables

In the SRC_URI, the branch name variables are switched for edk2 and edk2-platforms. Switch them as appropriate.

Fixes bf204866e864 ("arm: Use SRC* variables consistently")
---
 meta-arm/recipes-bsp/uefi/edk2-firmware.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +2 -2
index 42668d9d9cd6..5475b0a1bc5c 100644
@@ -18,8 +18,8 @@ SRC_URI_EDK2_PLATFORMS ?= "git://github.com/tianocore/edk2-platforms.git;protoco
 SRCBRANCH_edk2 = "master"
 SRCBRANCH_edk2_platforms = "master"
 SRC_URI = "\
-    ${SRC_URI_EDK2};branch=${SRCBRANCH_edk2_platforms};name=edk2;destsuffix=edk2 \
-    ${SRC_URI_EDK2_PLATFORMS};branch=${SRCBRANCH_edk2};name=edk2-platforms;destsuffix=edk2/edk2-platforms \
+    ${SRC_URI_EDK2};branch=${SRCBRANCH_edk2};name=edk2;destsuffix=edk2 \
+    ${SRC_URI_EDK2_PLATFORMS};branch=${SRCBRANCH_edk2_platforms};name=edk2-platforms;destsuffix=edk2/edk2-platforms \
 "
 
 SRCREV_FORMAT         = "edk2_edk2-platforms"
Signature · 1 line
2.39.5 (Apple Git-154)
author
#1 lore raw

PATCH 2/3 arm/fvp: add TC3 and Neoverse v3, remove n1 edge

Add Total Compute 2023, Neoverse V3 R1, and Reference Design-1 AE FVPs. Also, remove Neoverse N1 Edge.

---
 ci/fvps.yml                                        |  7 ++++++-
 .../fvp/fvp-base-a-aem_11.28.23.bb                 |  1 -
 meta-arm/recipes-devtools/fvp/fvp-n1-edge.bb       | 11 -----------
 meta-arm/recipes-devtools/fvp/fvp-rd1-ae.bb        | 14 ++++++++++++++
 meta-arm/recipes-devtools/fvp/fvp-tc3.bb           | 11 +++++++++++
 meta-arm/recipes-devtools/fvp/fvp-v3-r1.bb         | 14 ++++++++++++++
 6 files changed, 45 insertions(+), 13 deletions(-)
 delete mode 100644 meta-arm/recipes-devtools/fvp/fvp-n1-edge.bb
 create mode 100644 meta-arm/recipes-devtools/fvp/fvp-rd1-ae.bb
 create mode 100644 meta-arm/recipes-devtools/fvp/fvp-tc3.bb
 create mode 100644 meta-arm/recipes-devtools/fvp/fvp-v3-r1.bb
ci/fvps.yml +6 -1
index 8f1de177848b..e736c519c03d 100644
@@ -19,8 +19,13 @@ target:
   # Target packages to test aarch64
   - fvp-base-a-aem
   - fvp-corstone1000
+  - fvp-rd1-ae
+  - fvp-v3-r1
   # Nativesdk to test x86-64
   - nativesdk-fvp-base-a-aem
   - nativesdk-fvp-corstone1000
-  - nativesdk-fvp-n1-edge
+  - nativesdk-fvp-rd1-ae
+  - nativesdk-fvp-v3-r1
+  # These are x86 only... :(
   - nativesdk-fvp-sgi575
+  - nativesdk-fvp-tc3
meta-arm/recipes-devtools/fvp/fvp-base-a-aem_11.28.23.bb +0 -1
index 8c7e4dc668eb..f411276bd4bd 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba
                     file://license_terms/third_party_licenses/third_party_licenses.txt;md5=c51b57b6a4731881849eb0e2e2b6d799 \
                     file://license_terms/third_party_licenses/arm_license_management_utilities/third_party_licenses.txt;md5=abcaafefc7b7a0cdf6664c51f9075c5b"
 
-
 SRC_URI = "https://developer.arm.com/-/cdn-downloads/permalink/FVPs-Architecture/${PV_URL_SHORT}/${MODEL_CODE}_${PV_URL}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
 SRC_URI[fvp-aarch64.sha256sum] = "a380e271f14ce7cf99158018368ac86fe8c305f82c7d332a93eb08bf7a172571"
 SRC_URI[fvp-x86_64.sha256sum] = "0f6d67d834a8ed5dff3c863e0e3545ef39c736405ea8227577ac004cffd66e93"
meta-arm/recipes-devtools/fvp/fvp-n1-edge.bb deleted +0 -11
deleted file mode 100644
index 7fc3949b880b..000000000000
@@ -1,11 +0,0 @@
-require fvp-ecosystem.inc
-
-MODEL = "Neoverse-N1"
-MODEL_CODE = "FVP_RD_N1_edge"
-PV = "11.17.29"
-
-SRC_URI = "https://developer.arm.com/-/media/Arm%20Developer%20Community/Downloads/OSS/FVP/${MODEL}/${MODEL_CODE}_${PV_URL}_Linux64.tgz;subdir=${BP}"
-SRC_URI[sha256sum] = "76f5d6ec50b64fad6d8d901101d9ae2c62805f50fcfd0edb125bc2c68de8c8f2"
-
-LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
-                    file://license_terms/third_party_licenses.txt;md5=41029e71051b1c786bae3112a29905a7"
meta-arm/recipes-devtools/fvp/fvp-rd1-ae.bb new file +14 -0
new file mode 100644
index 000000000000..56558f83486d
@@ -0,0 +1,14 @@
+require fvp-ecosystem.inc
+
+MODEL = "RD-1_AE"
+MODEL_CODE = "FVP_RD_1_AE"
+PV = "11.27.20"
+
+SRC_URI = "https://developer.arm.com/-/cdn-downloads/permalink/FVPs-Automotive/${MODEL}/${MODEL_CODE}_${PV_URL}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
+SRC_URI[fvp-aarch64.sha256sum] = "297ded55d025772c9ad8497c6a97e0619fc1762dd1236e3ddec14da449f51ca4"
+SRC_URI[fvp-x86_64.sha256sum] = "e2b01fafac9cd560ed7a42f155241971d0cef086404c56bbb44dc6c9bf672e7d"
+
+LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
+                    file://license_terms/third_party_licenses/third_party_licenses.txt;md5=a3ce84371977a6b9c624408238309a90"
+
+COMPATIBLE_HOST = "(aarch64|x86_64).*-linux"
meta-arm/recipes-devtools/fvp/fvp-tc3.bb new file +11 -0
new file mode 100644
index 000000000000..e63a848a57e8
@@ -0,0 +1,11 @@
+require fvp-ecosystem.inc
+
+MODEL = "TC3"
+MODEL_CODE = "FVP_TC3"
+PV = "11.26.16"
+
+SRC_URI = "https://developer.arm.com/-/cdn-downloads/permalink/FVPs-Total-Compute/Total-Compute-TC3/${MODEL_CODE}_${PV_URL}_${FVP_ARCH}.tgz;subdir=${BP}"
+SRC_URI[sha256sum] = "1d72b508e5d8b50de0e389140b4930e5de53c48ba0d3e0865ed4d15898610069"
+
+LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
+                    file://license_terms/third_party_licenses/third_party_licenses.txt;md5=58b552b918d097a8ba802168312d76b2"
meta-arm/recipes-devtools/fvp/fvp-v3-r1.bb new file +14 -0
new file mode 100644
index 000000000000..5a451effafb6
@@ -0,0 +1,14 @@
+require fvp-ecosystem.inc
+
+MODEL = "RD-V3-r1"
+MODEL_CODE = "FVP_RD_V3_R1"
+PV = "11.27.51"
+
+SRC_URI = "https://developer.arm.com/-/cdn-downloads/permalink/FVPs-Neoverse-Infrastructure/${MODEL}/${MODEL_CODE}_${PV_URL}_${FVP_ARCH}.tgz;subdir=${BP};name=fvp-${HOST_ARCH}"
+SRC_URI[fvp-aarch64.sha256sum] = "6b25961a7dcac99ff5d2c63f297e1598b05e67938d71353b37c82e3d58d7ac3c"
+SRC_URI[fvp-x86_64.sha256sum] = "72f659ee3554ab0330984f35b2d640ea6553bbcbbf77cc485555be14277e4bc3"
+
+LIC_FILES_CHKSUM = "file://license_terms/license_agreement.txt;md5=1a33828e132ba71861c11688dbb0bd16 \
+                    file://license_terms/third_party_licenses/third_party_licenses.txt;md5=9ddd501715f7e1fed82c57b260b020ba"
+
+COMPATIBLE_HOST = "(aarch64|x86_64).*-linux"
Signature · 1 line
2.39.5 (Apple Git-154)
author
#2 lore raw

PATCH 3/3 arm-bsp/sgi575: add FVP support

In reply to Jon Mason

Add FVP support to sgi575 and run a boot test as part of CI. Networking is not currently working and seems to require an older version of edk2 to boot the kernel. Also, the unique files for grub and wks do not seem to be necessary.

---
 .gitlab-ci.yml                        |  6 ++++
 ci/sgi575.yml                         |  6 ++++
 meta-arm-bsp/conf/machine/sgi575.conf | 49 ++++++++++++++++++++++++---
 meta-arm-bsp/wic/sgi575-efidisk.wks   | 11 ------
 meta-arm-bsp/wic/sgi575-grub.cfg      |  9 -----
 5 files changed, 57 insertions(+), 24 deletions(-)
 delete mode 100644 meta-arm-bsp/wic/sgi575-efidisk.wks
 delete mode 100644 meta-arm-bsp/wic/sgi575-grub.cfg
.gitlab-ci.yml +6 -0
index f4b3262ca437..e655d1e62189 100644
@@ -339,6 +339,12 @@ selftest:
 
 sgi575:
   extends: .build
+  parallel:
+    matrix:
+      - TESTING: testimage
+  # FVP binary is x86-only
+  tags:
+    - x86_64
 
 toolchains:
   extends: .build
ci/sgi575.yml +6 -0
index e43138207166..d6e33894e890 100644
@@ -4,5 +4,11 @@ header:
   version: 14
   includes:
     - ci/base.yml
+    - ci/fvp.yml
+
+local_conf_header:
+  sshpregen: |
+    # Allow the use of the pregen keys as this is CI so safe
+    COMPATIBLE_MACHINE:pn-ssh-pregen-hostkeys:sgi575 = "sgi575"
 
 machine: sgi575
meta-arm-bsp/conf/machine/sgi575.conf +45 -4

63 lines not on this page · raw message

meta-arm-bsp/wic/sgi575-efidisk.wks deleted +0 -11
deleted file mode 100644
index d4c79d337bcb..000000000000
@@ -1,11 +0,0 @@
-# short-description: Create an EFI disk image
-# long-description: Creates a partitioned EFI disk image that the user
-# can directly dd to boot media. Uses a custom grub.cfg file to configure the boot.
-
-part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk sda --label msdos --active --align 1024
-
-part / --source rootfs --ondisk sda --fstype=ext4 --label root --align 1024 --uuid=9c53a91b-e182-4ff1-aeac-6ee2c432ae94
-
-part swap --ondisk sda --size 44 --label swap1 --fstype=swap
-
-bootloader --ptable gpt --configfile="sgi575-grub.cfg" --timeout=5
meta-arm-bsp/wic/sgi575-grub.cfg deleted +0 -9
deleted file mode 100644
index a176389746c1..000000000000
@@ -1,9 +0,0 @@
-set debug="loader,mm"
-set term="vt100"
-set default="0"
-set timeout="1"
-
-menuentry 'Arm reference image boot on sgi575' {
-        linux /Image acpi=force console=ttyAMA0,115200 ip=dhcp root=PARTUUID=9c53a91b-e182-4ff1-aeac-6ee2c432ae94 rootwait verbose debug
-}
-
Signature · 1 line
2.39.5 (Apple Git-154)
Applied
#3 lore raw
In reply to Jon Mason
Quoted 4 lines · Jon Mason

In the SRC_URI, the branch name variables are switched for edk2 and edk2-platforms. Switch them as appropriate.

Applied, thanks!

[1/3] arm/edk2-firmware: Fix branch name variables

      commit: 957fcca083c39674b2eb98c5d53aab5d5ec965c4
[2/3] arm/fvp: add TC3 and Neoverse v3, remove n1 edge
      commit: 3bf8bf5d4df92fdbcc63e6fdba756e29e2c66447
[3/3] arm-bsp/sgi575: add FVP support
      commit: f94c002d1d8347ec135dea4fb081e1e37ed87b75

Best regards,

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