diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2019-02-13 09:42:58 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-13 12:04:58 +0100 |
commit | 0b4b9e2d2df12f54ab73c39e1dfc1bcaefd4c420 (patch) | |
tree | 16cb9a7adfaab18fb745fc5ee2012799c19a15d3 | |
parent | 69668882bd8ed042fd97d050be18226cf174e7f2 (diff) | |
download | ptxdist-0b4b9e2d2df12f54ab73c39e1dfc1bcaefd4c420.tar.gz ptxdist-0b4b9e2d2df12f54ab73c39e1dfc1bcaefd4c420.tar.xz |
optee-client: add tee-supplicant service file
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | projectroot/usr/lib/systemd/system/tee-supplicant.service | 9 | ||||
-rw-r--r-- | rules/optee-client.in | 14 | ||||
-rw-r--r-- | rules/optee-client.make | 6 |
3 files changed, 27 insertions, 2 deletions
diff --git a/projectroot/usr/lib/systemd/system/tee-supplicant.service b/projectroot/usr/lib/systemd/system/tee-supplicant.service new file mode 100644 index 000000000..cef6b980d --- /dev/null +++ b/projectroot/usr/lib/systemd/system/tee-supplicant.service @@ -0,0 +1,9 @@ +[Unit] +Description=TEE Supplicant + +[Service] +Type=simple +ExecStart=/usr/bin/tee-supplicant + +[Install] +WantedBy=multi-user.target diff --git a/rules/optee-client.in b/rules/optee-client.in index 9099b4c48..be97b3689 100644 --- a/rules/optee-client.in +++ b/rules/optee-client.in @@ -1,8 +1,8 @@ ## SECTION=security -config OPTEE_CLIENT +menuconfig OPTEE_CLIENT tristate - prompt "optee-client" + prompt "optee-client " help Open Portable Trusted Execution Environment Client API. @@ -11,3 +11,13 @@ config OPTEE_CLIENT a binary tee-supplicant which is a daemon serving the Trusted OS in secure world with miscellaneous features, such as file system access. + +if OPTEE_CLIENT + +config OPTEE_CLIENT_SYSTEMD_UNIT + bool + default y + depends on SYSTEMD + prompt "install systemd service file for tee-supplicant" + +endif diff --git a/rules/optee-client.make b/rules/optee-client.make index 09cae7e93..042bfdfcc 100644 --- a/rules/optee-client.make +++ b/rules/optee-client.make @@ -54,6 +54,12 @@ $(STATEDIR)/optee-client.targetinstall: @$(call install_lib, optee-client, 0, 0, 0644, libteec) @$(call install_copy, optee-client, 0, 0, 0755, -, /usr/bin/tee-supplicant) +ifdef PTXCONF_OPTEE_CLIENT_SYSTEMD_UNIT + @$(call install_alternative, optee-client, 0, 0, 0644, \ + /usr/lib/systemd/system/tee-supplicant.service) + @$(call install_link, optee-client, ../tee-supplicant.service,\ + /usr/lib/systemd/system/multi-user.target.wants/tee-supplicant.service) +endif @$(call install_finish, optee-client) |