blob: dc92511a70994a14ebb19cad54c921787fe45e8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright (C) 2017-2018 NXP
SUMMARY = "OPTEE test"
HOMEPAGE = "http://www.optee.org/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=daa2bcccc666345ab8940aab1315a4fa"
DEPENDS = "optee-os optee-client python3-pycrypto-native openssl"
inherit python3native
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRCBRANCH = "lf-5.4.y"
OPTEE_TEST_SRC ?= "git://source.codeaurora.org/external/imx/imx-optee-test.git;protocol=https"
SRC_URI = "${OPTEE_TEST_SRC};branch=${SRCBRANCH} \
file://0003-sock_server-fix-compilation-against-musl-sys-errno.h.patch \
file://0004-build-ignore-declaration-after-statement-warnings.patch \
file://0005-benchmark_1000-fix-compilation-against-musl-uint.patch \
file://0006-regression_8100-use-null-terminated-strings-with-fil.patch \
file://0001-use-python3-instead-of-python.patch \
"
S = "${WORKDIR}/git"
SRCREV = "b7114b828b82f2c0eec124ed424eff1230cc5319"
do_compile () {
if [ ${DEFAULTTUNE} = "aarch64" ];then
export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_arm64/
export ARCH=arm64
else
export TA_DEV_KIT_DIR=${STAGING_INCDIR}/optee/export-user_ta_arm32/
export ARCH=arm
fi
export OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}/usr
export CROSS_COMPILE_HOST=${HOST_PREFIX}
export CROSS_COMPILE_TA=${HOST_PREFIX}
export CROSS_COMPILE=${HOST_PREFIX}
export OPTEE_OPENSSL_EXPORT=${STAGING_INCDIR}/
oe_runmake V=1 --warn-undefined-variables
}
do_install () {
install -d ${D}/usr/bin
install ${S}/out/xtest/xtest ${D}/usr/bin/
install -d ${D}/lib/optee_armtz
find ${S}/out/ta -name '*.ta' | while read name; do
install -m 444 $name ${D}/lib/optee_armtz/
done
}
FILES_${PN} = "/usr/bin/ /lib*/optee_armtz/"
COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
|