Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | SUMMARY = "Parts of PSA certification tests (psa-arch-test) for Trusted Services" |
| 2 | |
| 3 | TS_ENV = "arm-linux" |
| 4 | |
| 5 | require trusted-services.inc |
| 6 | |
| 7 | DEPENDS += "libts" |
| 8 | RDEPENDS:${PN} += "libts" |
| 9 | |
| 10 | SRC_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 | |
| 14 | SRCREV_psatest = "451aa087a40d02c7d04778235014c5619d126471" |
| 15 | LIC_FILES_CHKSUM += "file://../psatest/LICENSE.md;md5=2a944942e1496af1886903d274dedb13" |
| 16 | |
| 17 | EXTRA_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 |
| 22 | apply_ts_patch() { |
| 23 | for p in ${S}/external/psa_arch_tests/*.patch; do |
| 24 | patch -p1 -d ${WORKDIR}/git/psatest < ${p} |
| 25 | done |
| 26 | } |
| 27 | do_patch[postfuncs] += "apply_ts_patch" |
| 28 | |
| 29 | FILES:${PN} = "${bindir}/${PSA_TEST}" |
| 30 | |
| 31 | do_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 | } |