[HONISTER,2/5] arm/psa-arch-tests: introduce the recipe

Message ID 20211213181802.13323-3-abdellatif.elkhlifi@arm.com
State New
Headers show
Series : backport: "corstone1000: psa-arch-tests " | expand

Commit Message

Abdellatif El Khlifi Dec. 13, 2021, 6:17 p.m. UTC
From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>

This commit adds a recipe for psa-arch-tests linux
userspace application.

Included tests are; crypto, protected_storage,
internal_trusted_storage and attestation.

Change-Id: I6285aa2a6ae8fdd25f4327f1d301c59a88bce775
Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
---
 .../trusted-services/psa-arch-tests_git.bb    | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-arm/recipes-security/trusted-services/psa-arch-tests_git.bb

Patch

diff --git a/meta-arm/recipes-security/trusted-services/psa-arch-tests_git.bb b/meta-arm/recipes-security/trusted-services/psa-arch-tests_git.bb
new file mode 100644
index 0000000..ff89b06
--- /dev/null
+++ b/meta-arm/recipes-security/trusted-services/psa-arch-tests_git.bb
@@ -0,0 +1,26 @@ 
+SUMMARY = "PSA arch test application"
+
+require secure-partitions.inc
+
+LIC_FILES_CHKSUM += "file://../psa-arch-tests/LICENSE.md;md5=2a944942e1496af1886903d274dedb13"
+SRC_URI_PSA = "git://github.com/ARM-software/psa-arch-tests.git;protocol=https;branch=master;name=psa;destsuffix=git/psa-arch-tests"
+SRC_URI:append = " ${SRC_URI_PSA}"
+
+SRCREV_FORMAT="ts_psa"
+SRCREV_psa = "6e1549dde62d12c92fc2df90ebbbe2d2d77cc76a"
+PV = "0.0+git${SRCREV_psa}"
+
+PSA_APPLICATION_NAME = "psa-api-test"
+TS_ENVIRONMENT_LINUX = "arm-linux"
+
+PSA_API_TESTS += "deployments/psa-api-test/protected_storage/${TS_ENVIRONMENT_LINUX}"
+PSA_API_TESTS += "deployments/psa-api-test/internal_trusted_storage/${TS_ENVIRONMENT_LINUX}"
+PSA_API_TESTS += "deployments/psa-api-test/initial_attestation/${TS_ENVIRONMENT_LINUX}"
+PSA_API_TESTS += "deployments/psa-api-test/crypto/${TS_ENVIRONMENT_LINUX}"
+
+EXTRA_OECMAKE += "-DCMAKE_POSITION_INDEPENDENT_CODE=True \
+                 -DCMAKE_SYSTEM_NAME=Linux \
+                 -DCMAKE_SYSTEM_PROCESSOR=arm \
+                "
+
+do_deploy[noexec] = "1"