mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-06 16:48:54 +00:00
optee-client.bb: add optee client recipe and patches
This has moved from meta-linaro to meta-arm as this is the new place for general recipes for Arm arch and has a mailing list for external contributors. Change-Id: I5550620801d1d86217abb84f52fcd1e9a5873b08 Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
This commit is contained in:
35
meta-arm/recipes-security/optee/optee-client.bb
Normal file
35
meta-arm/recipes-security/optee/optee-client.bb
Normal file
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "OPTEE Client"
|
||||
HOMEPAGE = "https://github.com/OP-TEE/optee_client"
|
||||
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=69663ab153298557a59c67a60a743e5b"
|
||||
|
||||
PV = "3.7.0+git${SRCPV}"
|
||||
|
||||
inherit python3native systemd
|
||||
|
||||
SRC_URI = "git://github.com/OP-TEE/optee_client.git \
|
||||
file://tee-supplicant.service"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRCREV = "bc0ec8ce1e4dc5ae23f4737ef659338b7cd408fe"
|
||||
|
||||
SYSTEMD_SERVICE_${PN} = "tee-supplicant.service"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
|
||||
install -D -p -m0755 ${S}/out/export/usr/sbin/tee-supplicant ${D}${sbindir}/tee-supplicant
|
||||
|
||||
install -D -p -m0644 ${S}/out/export/usr/lib/libteec.so.1.0 ${D}${libdir}/libteec.so.1.0
|
||||
ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so
|
||||
ln -sf libteec.so.1.0 ${D}${libdir}/libteec.so.1
|
||||
|
||||
cp -a ${S}/out/export/usr/include ${D}/usr/
|
||||
|
||||
sed -i -e s:/etc:${sysconfdir}:g \
|
||||
-e s:/usr/bin:${bindir}:g \
|
||||
${WORKDIR}/tee-supplicant.service
|
||||
|
||||
install -D -p -m0644 ${WORKDIR}/tee-supplicant.service ${D}${systemd_system_unitdir}/tee-supplicant.service
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=TEE Supplicant
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
EnvironmentFile=-/etc/default/tee-supplicant
|
||||
ExecStart=/usr/sbin/tee-supplicant $OPTARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
Reference in New Issue
Block a user