summaryrefslogtreecommitdiffstats
path: root/recipes-security/optee-imx/optee-fslc.inc
blob: 47f95b0e805625bf00197b1cc2156d820342e619 (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
HOMEPAGE = "http://www.optee.org/"

inherit python3native features_check

REQUIRED_MACHINE_FEATURES = "optee"

DEPENDS = "python3-cryptography-native"

S = "${UNPACKDIR}/git"
B = "${UNPACKDIR}/build"

OPTEE_ARCH:arm     = "arm32"
OPTEE_ARCH:aarch64 = "arm64"

COMPILER ?= "gcc"
COMPILER:toolchain-clang = "clang"

CFLAGS += "--sysroot=${STAGING_DIR_HOST}"
CXXFLAGS += "--sysroot=${STAGING_DIR_HOST}"

EXTRA_OEMAKE = " \
    COMPILER=${COMPILER} \
    OPENSSL_MODULES=${STAGING_LIBDIR_NATIVE}/ossl-modules \
    OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${exec_prefix} \
    -C ${S} O=${B} \
    AFLAGS="${CFLAGS}" \
"