blob: 1e1be6a91aa9bae4de3cbebe8cbb50b7e6049b71 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "Parts of PSA certification tests (psa-arch-test) for Trusted Services"
2
3TS_ENV = "arm-linux"
4
5require trusted-services.inc
6
7DEPENDS += "libts"
8RDEPENDS:${PN} += "libts"
9
10SRC_URI += "git://github.com/ARM-software/psa-arch-tests.git;name=psatest;protocol=https;branch=main;destsuffix=git/psatest \
11 file://0012-psa-arch-test-toolchain.patch \
12 "
13
14SRCREV_psatest = "451aa087a40d02c7d04778235014c5619d126471"
15LIC_FILES_CHKSUM += "file://../psatest/LICENSE.md;md5=2a944942e1496af1886903d274dedb13"
16
17EXTRA_OECMAKE += "\
18 -DPSA_ARCH_TESTS_SOURCE_DIR=${WORKDIR}/git/psatest \
19 "
20
21# TS ships patches that need to be applied to psa-arch-tests
22apply_ts_patch() {
23 for p in ${S}/external/psa_arch_tests/*.patch; do
24 patch -p1 -d ${WORKDIR}/git/psatest < ${p}
25 done
26}
27do_patch[postfuncs] += "apply_ts_patch"
28
29FILES:${PN} = "${bindir}/${PSA_TEST}"
30
31do_install:append () {
32 install -d ${D}${bindir}
33 mv ${D}${TS_INSTALL}/bin/${PSA_TEST} ${D}${bindir}
34
35 rm -r --one-file-system ${D}${TS_INSTALL}
36}