forked from ilbers/isar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
optee-client-custom.inc
41 lines (29 loc) · 1.06 KB
/
optee-client-custom.inc
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
#
# Copyright (c) Siemens AG, 2023
#
# Authors:
# Su Bao Cheng <baocheng.su@siemens.com>
#
# SPDX-License-Identifier: MIT
#
inherit dpkg
FILESEXTRAPATHS:prepend := "${FILE_DIRNAME}/files:"
DESCRIPTION = "OPTee Client"
PROVIDES = "libteec1 optee-client-dev tee-supplicant"
SRC_URI += "file://debian"
TEE_FS_PARENT_PATH ?= "/var/lib/optee-client/data/tee"
# To use the builtin RPMB emulation, empty this
RPMB_EMU_BUILD_OPT ?= "RPMB_EMU=0"
TEMPLATE_FILES = "debian/rules.tmpl debian/control.tmpl"
TEMPLATE_VARS += "TEE_FS_PARENT_PATH RPMB_EMU_BUILD_OPT"
do_prepare_build[cleandirs] += "${S}/debian"
do_prepare_build() {
cp -r ${WORKDIR}/debian ${S}/
deb_add_changelog
echo "/usr/sbin/*" > ${S}/debian/tee-supplicant.install
echo "lib/optee_armtz/" > ${S}/debian/tee-supplicant.dirs
echo "usr/lib/tee-supplicant/plugins/" >> ${S}/debian/tee-supplicant.dirs
echo "usr/lib/*/libteec*.so.*" > ${S}/debian/libteec1.install
echo "usr/include/*" > ${S}/debian/optee-client-dev.install
echo "usr/lib/*/lib*.so" >> ${S}/debian/optee-client-dev.install
}