From d93f7c31c49b534deb9b88607835e20a33b5815e Mon Sep 17 00:00:00 2001 From: Abdellatif El Khlifi Date: Fri, 10 Dec 2021 14:09:13 +0000 Subject: [PATCH] arm/psa-arch-tests: introduce the recipe 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 Signed-off-by: Abdellatif El Khlifi --- .../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 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 00000000..ff89b064 --- /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"