Skip to contentSkip to conversation

Enable TFTF test build for additional boards

PATCH Applied [email protected] 2 participants 4 messages Oct 18, 2023 – Oct 19, 2023

lore
Share & tools
lore
#0 lore raw

cover Enable TFTF test build for additional boards

From: Drew Reed <[email protected]>

Enable building an image with the TF-A TFTF tests in place of the TF-A BL31 payload so the tests are run from normal world on the N1SDP platform.
Include in the CI configuration the building of this new image for the N1SDP board
Include the building of a Corstone-1000 MPS3 board TFTF test image into the CI pipeline

Drew Reed (2):
arm-bsp: Enable TF-A test building for the N1SDP
CI: Enable TF-A TFTF test builds

 .gitlab-ci.yml                                             | 7 +++++--
 ci/tftf.yml                                                | 1 +
 meta-arm-bsp/conf/machine/n1sdp.conf                       | 4 ++++
 .../recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend   | 2 ++
 .../trusted-firmware-a/trusted-firmware-a-n1sdp.inc        | 6 ++----
 5 files changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 arm-bsp: Enable TF-A test building for the N1SDP

From: Drew Reed <[email protected]>

To allow running of the TF-A tests we need to be able to build the TF-A test recipe for the N1SDP machine.

---
 meta-arm-bsp/conf/machine/n1sdp.conf                        | 4 ++++
 .../recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend    | 2 ++
 .../trusted-firmware-a/trusted-firmware-a-n1sdp.inc         | 6 ++----
 3 files changed, 8 insertions(+), 4 deletions(-)
meta-arm-bsp/conf/machine/n1sdp.conf +4 -0
index b93e053d..b960c3b1 100644
@@ -24,7 +24,11 @@ PREFERRED_VERSION_linux-yocto ?= "6.4%"
 # RTL8168E Gigabit Ethernet Controller is attached to the PCIe interface
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-firmware-rtl8168"
 
+# TF-A
 EXTRA_IMAGEDEPENDS += "trusted-firmware-a"
+TFA_PLATFORM = "n1sdp"
+
+# SCP
 EXTRA_IMAGEDEPENDS += "virtual/control-processor-firmware"
 
 #UEFI EDK2 firmware
meta-arm-bsp/recipes-bsp/trusted-firmware-a/tf-a-tests_%.bbappend +2 -0
index 392c6090..074bc683 100644
@@ -2,3 +2,5 @@
 
 COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
 SRCREV:corstone1000 = "5f591f67738a1bbe6b262c53d9dad46ed8bbcd67"
+
+COMPATIBLE_MACHINE:n1sdp = "n1sdp"
meta-arm-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-n1sdp.inc +2 -4
index 900decc2..878bff51 100644
@@ -5,17 +5,16 @@ SRCREV_tfa  = "31f60a968347497562b0129134928d7ac4767710"
 PV .= "+git"
 
 COMPATIBLE_MACHINE = "n1sdp"
-TFA_PLATFORM       = "n1sdp"
 TFA_BUILD_TARGET   = "all fip"
 TFA_INSTALL_TARGET = "bl1 bl2 bl31 n1sdp-multi-chip n1sdp-single-chip n1sdp_fw_config n1sdp_tb_fw_config fip"
 TFA_DEBUG          = "1"
 TFA_MBEDTLS        = "1"
 TFA_UBOOT          = "0"
-TFA_UEFI           = "1"
+TFA_UEFI          ?= "1"
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files/n1sdp:"
 
-SRC_URI:append = " \ 
+SRC_URI:append = " \
     file://0001-Reserve-OP-TEE-memory-from-nwd.patch \
     "
 
@@ -37,5 +36,4 @@ EXTRA_OEMAKE:append = "\
 		    ARM_ROTPK_LOCATION="devel_rsa" \
 		    ROT_KEY="${TFA_ROT_KEY}" \
 		    BL32=${RECIPE_SYSROOT}/${nonarch_base_libdir}/firmware/tee-pager_v2.bin \
-		    BL33=${RECIPE_SYSROOT}/firmware/uefi.bin \
 		    "
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 CI: Enable TF-A TFTF test builds

In reply to [email protected]

From: Drew Reed <[email protected]>

To allow running the TF-A TFTF tests we need to ensure the images for N1SDP and Corstone-1000 MPS3 boards build

---
 .gitlab-ci.yml | 7 +++++--
 ci/tftf.yml    | 1 +
 2 files changed, 6 insertions(+), 2 deletions(-)
.gitlab-ci.yml +5 -2
index e1845be5..89387405 100644
@@ -117,6 +117,10 @@ corstone1000-fvp:
 
 corstone1000-mps3:
   extends: .build
+  parallel:
+    matrix:
+      - TESTING: [none, tftf]
+
 
 fvp-base:
   extends: .build
@@ -148,8 +152,7 @@ n1sdp:
   extends: .build
   parallel:
     matrix:
-      - TS: [none, n1sdp-ts]
-      - OPTEE: [none, n1sdp-optee]
+      - TESTING: [none, n1sdp-ts, n1sdp-optee, tftf]
 
 qemu-generic-arm64:
   extends: .build
ci/tftf.yml +1 -0
index 260ceab0..33a8a4f5 100644
@@ -4,4 +4,5 @@ header:
 local_conf_header:
   tftf: |
     TFA_UBOOT = "0"
+    TFA_UEFI = "0"
     TFTF_TESTS = "1"
Signature · 1 line
2.34.1
Applied
#3 lore raw
In reply to [email protected]
Quoted 11 lines · On Wed, 18 Oct 2023 15:24:07 +0100, [email protected] wrote:

From: Drew Reed <[email protected]>

Enable building an image with the TF-A TFTF tests in place of the TF-A BL31 payload so the tests are run from normal world on the N1SDP platform.
Include in the CI configuration the building of this new image for the N1SDP board
Include the building of a Corstone-1000 MPS3 board TFTF test image into the CI pipeline

[...]

Applied, thanks!

[1/2] arm-bsp: Enable TF-A test building for the N1SDP

      commit: 8b3df3dd9bcf380bd7a0c96581ce5d3e48b3a52b
[2/2] CI: Enable TF-A TFTF test builds
      commit: ba17def14a27ebe0bf024e1981e90e24f3757e41

Best regards,

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