Allow to define custom tee fs paths. 00/134100/3
authorr.tyminski <r.tyminski@partner.samsung.com>
Wed, 14 Jun 2017 13:08:11 +0000 (15:08 +0200)
committerr.tyminski <r.tyminski@partner.samsung.com>
Thu, 29 Jun 2017 09:31:24 +0000 (11:31 +0200)
Adding ifndef for TEE_FS_SUBPATH and TEE_FS_PATH.

Change-Id: I009b49f96094a230ac1b43d90471cd2519ffb7be

tee-supplicant/Makefile
tee-supplicant/src/tee_supp_fs.c

index 204273f..808d90c 100644 (file)
@@ -47,6 +47,7 @@ TEES_INCLUDES         := ${CURDIR}/../libteec/include \
 TEES_CFLAGS    := $(addprefix -I, $(TEES_INCLUDES)) $(CFLAGS) \
                   -DDEBUGLEVEL_$(CFG_TEE_SUPP_LOG_LEVEL) \
                   -DBINARY_PREFIX=\"TEES\"
+TEES_CFLAGS += -DTEE_FS_SUBPATH=\"$(TEE_FS_SUBPATH)\" -DTEE_FS_PATH=\"$(TEE_FS_PATH)\"
 ifeq ($(CFG_GP_SOCKETS),y)
 TEES_CFLAGS    += -DCFG_GP_SOCKETS=1
 endif
index bd1a220..554026d 100644 (file)
 #include <linux/tee.h>
 
 /* Path to all secure storage files. */
+#ifndef TEE_FS_SUBPATH
 #define TEE_FS_SUBPATH "/data"
+#endif
+#ifndef TEE_FS_PATH
 #define TEE_FS_PATH "/data/tee/"
+#endif
 
 #ifndef PATH_MAX
 #define PATH_MAX 255