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#   The location of the client library file.
34CFG_TEE_CLIENT_LOAD_PATH ?= /lib
35
36# CFG_TEE_SUPP_PLUGINS
37#   Enable (y) or disable (n) TEE supplicant plugin support
38CFG_TEE_SUPP_PLUGINS ?= y
39
40# CFG_TEE_PLUGIN_LOAD_PATH
41#   The location of the user plugins
42CFG_TEE_PLUGIN_LOAD_PATH ?= /usr/lib/tee-supplicant/plugins/
43
44# CFG_TA_TEST_PATH
45#   Enable the tee test path.  When enabled, the supplicant will try
46#   loading from a debug path before the regular path.  This allows test
47#   such as 1008.5 that test loading of corrupt TAs.
48CFG_TA_TEST_PATH ?= n
49
50# CFG_GP_SOCKETS
51#   Enable Global Platform Sockets support
52CFG_GP_SOCKETS ?= y
53
54# CFG_TA_GPROF_SUPPORT
55#   Enable dumping gprof data, not used unless secure world decides
56#   to dump something
57CFG_TA_GPROF_SUPPORT ?= y
58
59# CFG_FTRACE_SUPPORT
60#   Enable dumping ftrace data, not used unless secure world decides
61#   to dump something
62CFG_FTRACE_SUPPORT ?= y
63
64# Default output directory.
65# May be absolute, or relative to the optee_client source directory.
66O               ?= out
67
68# To be used instead of $(O) in sub-directories
69OO := $(if $(filter /%,$(O)),$(O),$(CURDIR)/../$(O))
70
71#########################################################################
72# Private Values                                                        #
73#########################################################################
74
75# Check that settings are coherent.
76
77