Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | SUMMARY = "OP-TEE examples" |
| 2 | DESCRIPTION = "Open Portable Trusted Execution Environment - Sample Applications" |
| 3 | HOMEPAGE = "https://github.com/linaro-swg/optee_examples" |
| 4 | |
| 5 | LICENSE = "BSD-2-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=cd95ab417e23b94f381dafc453d70c30" |
| 7 | |
| 8 | DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native" |
| 9 | |
| 10 | inherit python3native |
| 11 | |
| 12 | require optee.inc |
| 13 | |
| 14 | SRC_URI = "git://github.com/linaro-swg/optee_examples.git;branch=master;protocol=https \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 15 | " |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 16 | |
| 17 | EXTRA_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 | |
| 23 | S = "${WORKDIR}/git" |
| 24 | B = "${WORKDIR}/build" |
| 25 | |
| 26 | |
| 27 | do_compile() { |
| 28 | oe_runmake -C ${S} |
| 29 | } |
| 30 | do_compile[cleandirs] = "${B}" |
| 31 | |
| 32 | do_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 | |
| 41 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/ \ |
| 42 | ${libdir}/tee-supplicant/plugins/ \ |
| 43 | " |
| 44 | |
| 45 | # Imports machine specific configs from staging to build |
| 46 | PACKAGE_ARCH = "${MACHINE_ARCH}" |