mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-12-14 14:36:02 +01:00
28 lines
1.2 KiB
PHP
28 lines
1.2 KiB
PHP
require recipes-security/optee/optee-client.inc
|
|
|
|
DEPENDS += "util-linux-libuuid"
|
|
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/optee-client:"
|
|
SRC_URI:remove = "git://github.com/OP-TEE/optee_client.git;branch=master;protocol=https"
|
|
SRC_URI:prepend = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH} "
|
|
OPTEE_CLIENT_SRC ?= "git://github.com/nxp-imx/imx-optee-client.git;protocol=https"
|
|
|
|
inherit pkgconfig
|
|
|
|
EXTRA_OECMAKE += "-DCFG_TEE_CLIENT_LOAD_PATH=${nonarch_base_libdir}"
|
|
|
|
# Copy the udev rule from the libts recipe for starting tee-supplicant@.service
|
|
SRC_URI += "file://tee-udev.rules"
|
|
# Unix group name for dev/tee* ownership.
|
|
TEE_GROUP_NAME ?= "teeclnt"
|
|
do_install:append () {
|
|
if ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', 'false', 'true', d)}; then
|
|
install -d ${D}${nonarch_base_libdir}/udev/rules.d/
|
|
install -m 755 ${WORKDIR}/tee-udev.rules ${D}${nonarch_base_libdir}/udev/rules.d/
|
|
sed -i -e "s/teeclnt/${TEE_GROUP_NAME}/" ${D}${nonarch_base_libdir}/udev/rules.d/tee-udev.rules
|
|
fi
|
|
}
|
|
inherit ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', '', 'useradd', d)}
|
|
USERADD_PACKAGES = "${PN}"
|
|
GROUPADD_PARAM:${PN} = "--system ${TEE_GROUP_NAME}"
|