arm-bsp/trusted-services: add n1sdp support
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.
Signed-off-by Jon Mason <[email protected]>
--- .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
@@ -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
@@ -1 +1,2 @@ COMPATIBLE_MACHINE:corstone1000 = "corstone1000" +COMPATIBLE_MACHINE:n1sdp = "n1sdp"
meta-arm-bsp/recipes-security/trusted-services/libts_%.bbappend +2 -7
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -0,0 +1 @@ +require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-crypto_%.bbappend new file +1 -0
@@ -0,0 +1 @@ +require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-its_%.bbappend new file +1 -0
@@ -0,0 +1 @@ +require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-sp-se-proxy_%.bbappend +1 -5
@@ -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
@@ -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
@@ -0,0 +1 @@ +require ts-arm-platforms.inc
meta-arm-bsp/recipes-security/trusted-services/ts-uefi-test_%.bbappend +1 -4
@@ -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
Jon Mason
AppliedQuoted 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]>