Some applications, for example optee-xtest, may use supplicant plugins.

Add an option to enable the supplicant plugin support, if necessary.

Signed-off-by: Michael Tretter <[email protected]>
---
 rules/optee-client.in   | 4 ++++
 rules/optee-client.make | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/rules/optee-client.in b/rules/optee-client.in
index 5d05d3bf5ebf..cb1033cb0533 100644
--- a/rules/optee-client.in
+++ b/rules/optee-client.in
@@ -22,4 +22,8 @@ config OPTEE_CLIENT_SYSTEMD_UNIT
        depends on SYSTEMD
        prompt "install systemd service file for tee-supplicant"
 
+config OPTEE_CLIENT_SUPPLICANT_PLUGINS
+       bool
+       prompt "enable TEE supplicant plugins"
+
 endif
diff --git a/rules/optee-client.make b/rules/optee-client.make
index ef07b2ca8fb8..8ea127774b0d 100644
--- a/rules/optee-client.make
+++ b/rules/optee-client.make
@@ -46,7 +46,7 @@ OPTEE_CLIENT_CONF_OPT := \
        -DCFG_TEE_SUPPL_GROUP=teesuppl \
        -DCFG_TEE_SUPPL_USER=teesuppl \
        -DCFG_TEE_SUPP_LOG_LEVEL=1 \
-       -DCFG_TEE_SUPP_PLUGINS=OFF \
+       -DCFG_TEE_SUPP_PLUGINS=$(call ptx/onoff, 
PTXCONF_OPTEE_CLIENT_SUPPLICANT_PLUGINS) \
        -DCFG_WERROR=ON \
        -DRPMB_EMU=ON \
        -DWITH_TEEACL=ON
-- 
2.39.5


Reply via email to