blob: e6feb9939ddf79d5e568988f0b5650cf9072f9c3 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001SUMMARY = "OP-TEE examples"
2DESCRIPTION = "Open Portable Trusted Execution Environment - Sample Applications"
3HOMEPAGE = "https://github.com/linaro-swg/optee_examples"
4
5LICENSE = "BSD-2-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=cd95ab417e23b94f381dafc453d70c30"
7
8DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native"
9
10inherit python3native
11
12require optee.inc
13
14SRC_URI = "git://github.com/linaro-swg/optee_examples.git;branch=master;protocol=https \
15 file://0001-Makefile-Fix-non-portable-sh-check-for-plugins.patch"
16
17EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
18 HOST_CROSS_COMPILE=${HOST_PREFIX} \
19 TA_CROSS_COMPILE=${HOST_PREFIX} \
20 OUTPUT_DIR=${B} \
21 "
22
23S = "${WORKDIR}/git"
24B = "${WORKDIR}/build"
25
26
27do_compile() {
28 oe_runmake -C ${S}
29}
30do_compile[cleandirs] = "${B}"
31
32do_install () {
33 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz
34 mkdir -p ${D}${bindir}
35 mkdir -p ${D}${libdir}/tee-supplicant/plugins
36 install -D -p -m0755 ${B}/ca/* ${D}${bindir}
37 install -D -p -m0444 ${B}/ta/* ${D}${nonarch_base_libdir}/optee_armtz
38 install -D -p -m0444 ${B}/plugins/* ${D}${libdir}/tee-supplicant/plugins
39}
40
41FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \
42 ${libdir}/tee-supplicant/plugins/ \
43 "
44
45# Imports machine specific configs from staging to build
46PACKAGE_ARCH = "${MACHINE_ARCH}"