Skip to contentSkip to conversation

arm-bsp/trusted-services: add n1sdp support

PATCH Applied Jon Mason 2 participants 2 messages Nov 21, 2022

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 arm-bsp/trusted-services: add n1sdp support

Add support for n1sdp to trusted-services bbappends and rework some things to make it easier to add more in the future.

---
 .gitlab-ci.yml                                           | 1 +
 .../packagegroups/packagegroup-ts-tests.bbappend         | 1 +
 .../recipes-security/trusted-services/libts_%.bbappend   | 9 ++-------
 .../trusted-services/ts-arm-platforms.inc                | 3 ++-
 .../recipes-security/trusted-services/ts-demo_%.bbappend | 5 +----
 .../trusted-services/ts-newlib_%.bbappend                | 3 ++-
 .../trusted-services/ts-psa-api-test.inc                 | 2 +-
 .../trusted-services/ts-service-test_%.bbappend          | 5 +----
 .../trusted-services/ts-sp-attestation_%.bbappend        | 1 +
 .../trusted-services/ts-sp-crypto_%.bbappend             | 1 +
 .../trusted-services/ts-sp-its_%.bbappend                | 1 +
 .../trusted-services/ts-sp-se-proxy_%.bbappend           | 6 +-----
 .../trusted-services/ts-sp-smm-gateway_%.bbappend        | 6 +-----
 .../trusted-services/ts-sp-storage_%.bbappend            | 1 +
 .../trusted-services/ts-uefi-test_%.bbappend             | 5 +----
 15 files changed, 18 insertions(+), 32 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-sp-attestation_%.bbappend
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-sp-crypto_%.bbappend
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-sp-its_%.bbappend
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/ts-sp-storage_%.bbappend
.gitlab-ci.yml +1 -0
index 7d050a55..40cffe56 100644
@@ -137,6 +137,7 @@ n1sdp:
   parallel:
     matrix:
       - TOOLCHAINS: [gcc, armgcc]
+        TS: [none, trusted-services]
 
 qemu-generic-arm64:
   extends: .build
meta-arm-bsp/recipes-security/packagegroups/packagegroup-ts-tests.bbappend +1 -0
index dddc59af..20612cb1 100644
@@ -1 +1,2 @@
 COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
+COMPATIBLE_MACHINE:n1sdp = "n1sdp"
meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend +2 -7
index 422bb708..99c03f69 100644
@@ -1,10 +1,5 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
-
+require ts-arm-platforms.inc
 
 EXTRA_OECMAKE:append:corstone1000 = "-DMM_COMM_BUFFER_ADDRESS=0x02000000 \
-                                    -DMM_COMM_BUFFER_PAGE_COUNT=1 \
+                                     -DMM_COMM_BUFFER_PAGE_COUNT=1 \
                                     "
-
meta-arm-bsp/recipes-security/trusted-services/ts-arm-platforms.inc +2 -1
index 5533e74e..2d90fe57 100644
@@ -1,7 +1,6 @@
 FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000:"
 
 COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
-
 SRC_URI:append:corstone1000  = " \
     file://0001-Add-openamp-to-SE-proxy-deployment.patch;patchdir=../trusted-services \
     file://0002-Implement-mhu-driver-and-the-OpenAmp-conversion-laye.patch;patchdir=../trusted-services \
@@ -26,3 +25,5 @@ SRC_URI:append:corstone1000  = " \
     file://0021-smm_gateway-add-checks-for-null-attributes.patch;patchdir=../trusted-services \
     file://0022-GetNextVariableName-Fix.patch;patchdir=../trusted-services \
     "
+
+COMPATIBLE_MACHINE:n1sdp = "n1sdp"
meta-arm-bsp/recipes-security/trusted-services/ts-demo_%.bbappend +1 -4
index 8e17d377..5c9ef210 100644
@@ -1,4 +1 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-newlib_%.bbappend +2 -1
index b500fd65..7417d9b0 100644
@@ -1,7 +1,8 @@
 FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000/${PN}:"
 
 COMPATIBLE_MACHINE:corstone1000 = "corstone1000"
-
 SRC_URI:append:corstone1000 = " \
   file://0001-newlib-memcpy-remove-optimized-version.patch;patchdir=../newlib \
 "
+
+COMPATIBLE_MACHINE:n1sdp = "n1sdp"
meta-arm-bsp/recipes-security/trusted-services/ts-psa-api-test.inc +1 -1
index 5936a25e..a1f43d41 100644
@@ -1,4 +1,4 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/corstone1000/psa-apitest:"
+FILESEXTRAPATHS:prepend:corstone1000 := "${THISDIR}/corstone1000/psa-apitest:"
 
 include ts-arm-platforms.inc
 
meta-arm-bsp/recipes-security/trusted-services/ts-service-test_%.bbappend +1 -4
index 8e17d377..5c9ef210 100644
@@ -1,4 +1 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-attestation_%.bbappend new file +1 -0
new file mode 100644
index 00000000..5c9ef210
@@ -0,0 +1 @@
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-crypto_%.bbappend new file +1 -0
new file mode 100644
index 00000000..5c9ef210
@@ -0,0 +1 @@
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-its_%.bbappend new file +1 -0
new file mode 100644
index 00000000..5c9ef210
@@ -0,0 +1 @@
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend +1 -5
index 8d93cca5..eba15532 100644
@@ -1,9 +1,5 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
+require ts-arm-platforms.inc
 
 EXTRA_OECMAKE:append:corstone1000 = " -DMM_COMM_BUFFER_ADDRESS="0x00000000 0x02000000" \
     -DMM_COMM_BUFFER_PAGE_COUNT="1" \
     "
-
meta-arm-bsp/recipes-security/trusted-services/ts-sp-smm-gateway_%.bbappend +1 -5
index 8d93cca5..eba15532 100644
@@ -1,9 +1,5 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
+require ts-arm-platforms.inc
 
 EXTRA_OECMAKE:append:corstone1000 = " -DMM_COMM_BUFFER_ADDRESS="0x00000000 0x02000000" \
     -DMM_COMM_BUFFER_PAGE_COUNT="1" \
     "
-
meta-arm-bsp/recipes-security/trusted-services/ts-sp-storage_%.bbappend new file +1 -0
new file mode 100644
index 00000000..5c9ef210
@@ -0,0 +1 @@
+require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend +1 -4
index 8e17d377..5c9ef210 100644
@@ -1,4 +1 @@
-MACHINE_TS_REQUIRE ?= ""
-MACHINE_TS_REQUIRE:corstone1000 = "ts-arm-platforms.inc"
-
-require ${MACHINE_TS_REQUIRE}
+require ts-arm-platforms.inc
Signature · 1 line
2.17.1
Applied
#1 lore raw
Quoted 2 lines · Jon Mason

Add support for n1sdp to trusted-services bbappends and rework some things to make it easier to add more in the future.

Applied, thanks!

[1/1] arm-bsp/trusted-services: add n1sdp support

      commit: 11698cd358938daa92b4a098191b4c57847ebb7f

Best regards,

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