1#########################################################################
2# Public variables                                                      #
3# Developers may override these values when calling the makefile,       #
4# as for example                                                        #
5#       CFG_TEE_CLIENT_LOG_LEVEL=1 make                                 #
6# Note:                                                                 #
7#   Please do not use export to declare the variables, so that to avoid #
8#   compiling problem for android platform                              #
9#########################################################################
10
11# CFG_TEE_CLIENT_LOG_LEVEL
12#   Client (User Non Secure) log level
13#   Supported values: 0 (no traces) to 4 (all traces)
14CFG_TEE_CLIENT_LOG_LEVEL?=1
15
16# CFG_TEE_SUPP_LOG_LEVEL
17#   Supplicant log level
18#   Supported values: 0 (no traces) to 4 (all traces)
19CFG_TEE_SUPP_LOG_LEVEL?=1
20
21# CFG_TEE_FS_PARENT_PATH
22#   Path to folder that will contain TEE filesystem.
23#   This folder can be created with the required permission in an init
24#   script during boot, else it will be created by the tee-supplicant on
25#   first REE FS access.
26CFG_TEE_FS_PARENT_PATH ?= /data/tee
27
28# CFG_TEE_CLIENT_LOG_FILE
29#   The location of the client log file when logging to file is enabled.
30CFG_TEE_CLIENT_LOG_FILE ?= $(CFG_TEE_FS_PARENT_PATH)/teec.log
31
32# CFG_TEE_CLIENT_LOAD_PATH
33#   Colon-separated list of paths where tee-supplicant loads TAs from.
34#   For example: CFG_TEE_CLIENT_LOAD_PATH ?= /lib:/vendor/lib
35#   Note that the TA files are typically in a sub-directory (see the
36#   --ta-dir option).
37CFG_TEE_CLIENT_LOAD_PATH ?= /lib
38
39# CFG_TEE_SUPP_PLUGINS
40#   Enable (y) or disable (n) TEE supplicant plugin support
41CFG_TEE_SUPP_PLUGINS ?= y
42
43# CFG_TEE_PLUGIN_LOAD_PATH
44#   The location of the user plugins
45CFG_TEE_PLUGIN_LOAD_PATH ?= /usr/lib/tee-supplicant/plugins/
46
47# CFG_TA_TEST_PATH
48#   Enable the tee test path.  When enabled, the supplicant will try
49#   loading from a debug path before the regular path.  This allows test
50#   such as 1008.5 that test loading of corrupt TAs.
51CFG_TA_TEST_PATH ?= n
52
53# CFG_GP_SOCKETS
54#   Enable Global Platform Sockets support
55CFG_GP_SOCKETS ?= y
56
57# CFG_TA_GPROF_SUPPORT
58#   Enable dumping gprof data, not used unless secure world decides
59#   to dump something
60CFG_TA_GPROF_SUPPORT ?= y
61
62# CFG_FTRACE_SUPPORT
63#   Enable dumping ftrace data, not used unless secure world decides
64#   to dump something
65CFG_FTRACE_SUPPORT ?= y
66
67# Default output directory.
68# May be absolute, or relative to the optee_client source directory.
69O               ?= out
70
71# To be used instead of $(O) in sub-directories
72OO := $(if $(filter /%,$(O)),$(O),$(CURDIR)/../$(O))
73
74#########################################################################
75# Private Values                                                        #
76#########################################################################
77
78# Check that settings are coherent.
79
80