summaryrefslogtreecommitdiff
path: root/core/tee/sub.mk
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2015-11-27 15:54:44 +0100
committerJerome Forissier <jerome.forissier@linaro.org>2016-01-25 17:50:33 +0100
commita8a78b857b907f73497d48bab6304cf29aba3636 (patch)
tree5538804e43df0bcbeec68c3ce71b1ee5f7e35427 /core/tee/sub.mk
parentc4eaf58b11c25318d675edf3397c1d3b6eff9b46 (diff)
core: RPMB (Replay Protected Memory Block) filesystem support
This is an update to the RPMB filesystem implementation so that the persistent object API may use RPMB rather than the REE filesystem. This feature is enabled with CFG_RPMB_FS=y. Note that this implementation requires support from the non-secure side to actually access the RPMB partition, as there is no eMMC driver here. Also, the code is currently not compatible with CFG_ENC_FS (file encryption), which must be set to 'n'. Encryption will be added later. Signed-off-by: Youssef Esmat <youssef.esmat@microsoft.com> Signed-off-by: Paul Swan <Paul.Swan@microsoft.com> [Rebased onto master, Linux driver/tee-supplicant support] Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Diffstat (limited to 'core/tee/sub.mk')
-rw-r--r--core/tee/sub.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/tee/sub.mk b/core/tee/sub.mk
index 55e558c6..d446a1a0 100644
--- a/core/tee/sub.mk
+++ b/core/tee/sub.mk
@@ -26,13 +26,18 @@ srcs-$(CFG_CRYPTO_HKDF) += tee_cryp_hkdf.c
srcs-$(CFG_CRYPTO_CONCAT_KDF) += tee_cryp_concat_kdf.c
srcs-$(CFG_CRYPTO_PBKDF2) += tee_cryp_pbkdf2.c
+ifeq (y,$(CFG_RPMB_FS))
+$(call force,CFG_ENC_FS,n)
+srcs-y += tee_rpmb_fs_common.c
+srcs-y += tee_rpmb_fs.c
+else
srcs-y += tee_fs_common.c
+endif
srcs-y += tee_fs_key_manager.c
srcs-y += tee_fs.c
srcs-y += tee_obj.c
srcs-y += tee_pobj.c
-srcs-y += tee_rpmb_fs.c
srcs-y += tee_time_generic.c
subdirs-${CFG_SE_API} += se