mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 11:32:30 +00:00
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>
42 lines
790 B
Bash
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
|