Files
meta-tegra/recipes-security/optee/optee-client/tee-supplicant.sh.in
Matt Madison d944d32e20 optee: add recipes for building optee from source
Recipes are patterned after those in meta-arm, with the
following changes:

* Sources are obtained from the NVIDIA L4T public_sources archive.
* The TA development kit requires a distinct recipe to allow
  for building an out-of-tree TA from the NVIDIA samples into
  the optee OS image.
* Jetson targets need a special tool to bundle TF-A with OP-TEE
  into the secure OS image, and deployment happens in that recipe.

Signed-off-by: Matt Madison <matt@madison.systems>
2022-10-23 10:14:54 -07:00

42 lines
790 B
Bash

#!/bin/sh
NAME=tee-supplicant
PATH=@stripped_path@
DESC="OP-TEE Supplicant"
DAEMON=@sbindir@/$NAME
OPTARGS=
test -f $DAEMON || exit 0
test -f @sysconfdir@/default/$NAME && . @sysconfdir@/default/$NAME
test -f @sysconfdir@/default/rcS && . @sysconfdir@/default/rcS
SSD_OPTIONS="--oknodo --quiet --exec $DAEMON -- -d $OPTARGS"
set -e
case $1 in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start $SSD_OPTIONS
echo "${DAEMON##*/}."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop $SSD_OPTIONS
echo "${DAEMON##*/}."
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0