initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
config BR2_PACKAGE_OPTEE_CLIENT
|
||||
bool "optee-client"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 # MMC_IOC_MULTI_CMD
|
||||
help
|
||||
Enable the OP-TEE client package that brings non-secure
|
||||
client application resources for OP-TEE support. OP-TEE
|
||||
client is a component delivered by the OP-TEE project.
|
||||
|
||||
The client API library allows application to invoke trusted
|
||||
applications hosted in the OP-TEE OS secure world. The
|
||||
supplicant provides services hosted by the non-secure world
|
||||
and invoked by the secure world.
|
||||
|
||||
https://github.com/OP-TEE/optee_client
|
||||
|
||||
if BR2_PACKAGE_OPTEE_CLIENT
|
||||
|
||||
config BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH
|
||||
string "Path for normal world OS secure storage"
|
||||
default "/data/tee"
|
||||
help
|
||||
Path to storage area for secure storage based on the
|
||||
normal world OS providing the actual storage via
|
||||
tee-supplicant.
|
||||
|
||||
config BR2_PACKAGE_OPTEE_CLIENT_RPMB_EMU
|
||||
bool "Enable RPMB emulation"
|
||||
default y
|
||||
help
|
||||
Enable RPMB device emulation in tee-supplicant.
|
||||
|
||||
config BR2_PACKAGE_OPTEE_CLIENT_SUPP_PLUGINS
|
||||
bool "Enable TEE supplicant plugins"
|
||||
default y
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
help
|
||||
Enable TEE supplicant plugin support.
|
||||
|
||||
endif
|
||||
|
||||
comment "optee-client needs a toolchain w/ threads, headers >= 4.3"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
|
||||
@@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="tee-supplicant"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
DAEMON_ARGS="-d /dev/teepriv0"
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- $DAEMON_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart)
|
||||
"$1";;
|
||||
reload)
|
||||
# Restart, since there is no true "reload" feature (does not
|
||||
# reconfigure/restart on SIGHUP, just closes all open files).
|
||||
restart;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/OP-TEE/optee_client/archive/3.15.0/optee-client-3.15.0.tar.gz
|
||||
sha256 e1ea6c953e3584248d7a62050813e5ac0f0112933447954c44236a233a4cbba5 optee-client-3.15.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 fda8385993f112d7ca61b88b54ba5b4cbeec7e43a0f9b317d5186703c1985e8f LICENSE
|
||||
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# optee-client
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPTEE_CLIENT_VERSION = 3.15.0
|
||||
OPTEE_CLIENT_SITE = $(call github,OP-TEE,optee_client,$(OPTEE_CLIENT_VERSION))
|
||||
OPTEE_CLIENT_LICENSE = BSD-2-Clause
|
||||
OPTEE_CLIENT_LICENSE_FILES = LICENSE
|
||||
OPTEE_CLIENT_INSTALL_STAGING = YES
|
||||
|
||||
OPTEE_CLIENT_CONF_OPTS = \
|
||||
-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \
|
||||
-DCFG_WERROR=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_RPMB_EMU),y)
|
||||
OPTEE_CLIENT_CONF_OPTS += -DRPMB_EMU=ON
|
||||
else
|
||||
OPTEE_CLIENT_CONF_OPTS += -DRPMB_EMU=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_SUPP_PLUGINS),y)
|
||||
OPTEE_CLIENT_CONF_OPTS += -DCFG_TEE_SUPP_PLUGINS=ON
|
||||
else
|
||||
OPTEE_CLIENT_CONF_OPTS += -DCFG_TEE_SUPP_PLUGINS=OFF
|
||||
endif
|
||||
|
||||
define OPTEE_CLIENT_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D $(OPTEE_CLIENT_PKGDIR)/S30optee \
|
||||
$(TARGET_DIR)/etc/init.d/S30optee
|
||||
endef
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user