From 0f29c11d2a498e2cea957d334fcf2435a1bfe530 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 14 Apr 2021 15:47:24 +0200 Subject: [PATCH] optee-client: use /var/lib/tee instead of /data/tee for persistent storage This is more FHS-conformant, and allows tee-supplicant to work on a readonly rootfs setup (although then it uses volatile storage by default, and it is still a matter of distro policy how to arrange for that storage to be persistent in a readonly setup). Signed-off-by: Yann Dirson Suggested-by: Ricardo Salveti Signed-off-by: Jon Mason --- meta-arm/recipes-security/optee/optee-client.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-arm/recipes-security/optee/optee-client.inc b/meta-arm/recipes-security/optee/optee-client.inc index f697386c..65c9a447 100644 --- a/meta-arm/recipes-security/optee/optee-client.inc +++ b/meta-arm/recipes-security/optee/optee-client.inc @@ -17,7 +17,10 @@ UPSTREAM_CHECK_GITTAGREGEX = "^(?P\d+(\.\d+)+)$" S = "${WORKDIR}/git" -EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON" +EXTRA_OECMAKE = " \ + -DBUILD_SHARED_LIBS=ON \ + -DCFG_TEE_FS_PARENT_PATH='${localstatedir}/lib/tee' \ +" EXTRA_OECMAKE_append_toolchain-clang = " -DCFG_WERROR=0" do_install_append() {