From: r.tyminski Date: Wed, 14 Jun 2017 13:08:11 +0000 (+0200) Subject: Allow to define custom tee fs paths. X-Git-Tag: submit/tizen/20171011.123005~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F134100%2F3;p=platform%2Fcore%2Fsecurity%2Ftef-optee_client.git Allow to define custom tee fs paths. Adding ifndef for TEE_FS_SUBPATH and TEE_FS_PATH. Change-Id: I009b49f96094a230ac1b43d90471cd2519ffb7be --- diff --git a/tee-supplicant/Makefile b/tee-supplicant/Makefile index 204273f..808d90c 100644 --- a/tee-supplicant/Makefile +++ b/tee-supplicant/Makefile @@ -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 diff --git a/tee-supplicant/src/tee_supp_fs.c b/tee-supplicant/src/tee_supp_fs.c index bd1a220..554026d 100644 --- a/tee-supplicant/src/tee_supp_fs.c +++ b/tee-supplicant/src/tee_supp_fs.c @@ -48,8 +48,12 @@ #include /* 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