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 \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 11 | file://0001-Pass-Yocto-build-settings-to-psa-arch-tests-native.patch;patchdir=../psatest \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame^] | 21 | # TS check if there are patches to apply to psa-arch-tests, if so apply them |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 22 | apply_ts_patch() { |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame^] | 23 | find ${S}/external/psa_arch_tests -type f -name '*.patch' -exec patch -p1 -d ${WORKDIR}/git/psatest -i {} \; |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 24 | } |
| 25 | do_patch[postfuncs] += "apply_ts_patch" |
| 26 | |
| 27 | FILES:${PN} = "${bindir}/${PSA_TEST}" |
| 28 | |
| 29 | do_install:append () { |
| 30 | install -d ${D}${bindir} |
| 31 | mv ${D}${TS_INSTALL}/bin/${PSA_TEST} ${D}${bindir} |
| 32 | |
| 33 | rm -r --one-file-system ${D}${TS_INSTALL} |
| 34 | } |