blob: 75ef164cb45750bee6c3499920407c8f5748dcb7 [file] [log] [blame]
Pascal Brand04ac4652014-06-03 16:12:38 +02001#########################################################################
2# Public variables #
3# Developers may override these values when calling the makefile, #
4# as for example #
Pascal Brand0b032b62014-11-19 15:54:57 +01005# CFG_TEE_CLIENT_LOG_LEVEL=1 make #
Yongqin Liub6bfce92018-08-17 12:19:38 +08006# Note: #
7# Please do not use export to declare the variables, so that to avoid #
8# compiling problem for android platform #
Pascal Brand04ac4652014-06-03 16:12:38 +02009#########################################################################
10
11# CFG_TEE_CLIENT_LOG_LEVEL
12# Client (User Non Secure) log level
Pascal Brand0b032b62014-11-19 15:54:57 +010013# Supported values: 0 (no traces) to 4 (all traces)
14CFG_TEE_CLIENT_LOG_LEVEL?=1
Pascal Brand04ac4652014-06-03 16:12:38 +020015
16# CFG_TEE_SUPP_LOG_LEVEL
17# Supplicant log level
Pascal Brand0b032b62014-11-19 15:54:57 +010018# Supported values: 0 (no traces) to 4 (all traces)
19CFG_TEE_SUPP_LOG_LEVEL?=1
Pascal Brand04ac4652014-06-03 16:12:38 +020020
Victor Chongae3eb9d2019-04-25 17:31:25 +090021# CFG_TEE_FS_PARENT_PATH
22# Path to folder that will contain TEE filesystem.
Victor Chong9cfd32a2019-04-30 19:09:50 +090023# 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.
Victor Chong83c7bcf2019-05-10 17:40:15 +090026CFG_TEE_FS_PARENT_PATH ?= /data/tee
Yongqin Liu9a631352018-03-29 16:00:11 +080027
sunny1ebcb5a2014-12-12 16:09:45 +080028# CFG_TEE_CLIENT_LOG_FILE
Victor Chongae3eb9d2019-04-25 17:31:25 +090029# The location of the client log file when logging to file is enabled.
Victor Chong56022272019-06-14 23:52:17 +090030CFG_TEE_CLIENT_LOG_FILE ?= $(CFG_TEE_FS_PARENT_PATH)/teec.log
sunny1ebcb5a2014-12-12 16:09:45 +080031
32# CFG_TEE_CLIENT_LOAD_PATH
Victor Chongae3eb9d2019-04-25 17:31:25 +090033# The location of the client library file.
l00176142f761a272017-08-28 19:37:09 +080034CFG_TEE_CLIENT_LOAD_PATH ?= /lib
sunny1ebcb5a2014-12-12 16:09:45 +080035
Etienne Carrieref5911432021-08-04 13:17:52 +020036# CFG_TEE_SUPP_PLUGINS
37# Enable (y) or disable (n) TEE supplicant plugin support
38CFG_TEE_SUPP_PLUGINS ?= y
39
Aleksandr Anisimov1e91cc72020-12-08 22:46:47 +030040# CFG_TEE_PLUGIN_LOAD_PATH
41# The location of the user plugins
42CFG_TEE_PLUGIN_LOAD_PATH ?= /usr/lib/tee-supplicant/plugins/
43
David Brown81f02572016-08-02 11:51:32 -060044# CFG_TA_TEST_PATH
Victor Chongae3eb9d2019-04-25 17:31:25 +090045# 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.
Victor Chong76d249c2019-04-26 02:03:05 +090048CFG_TA_TEST_PATH ?= n
David Brown81f02572016-08-02 11:51:32 -060049
Jens Wiklanderf79c74f2016-12-13 20:47:01 +010050# CFG_GP_SOCKETS
Victor Chongae3eb9d2019-04-25 17:31:25 +090051# Enable Global Platform Sockets support
Jens Wiklanderf79c74f2016-12-13 20:47:01 +010052CFG_GP_SOCKETS ?= y
53
Jens Wiklander16e53042019-06-27 10:19:38 +020054# 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
Sumit Garg2e526f42019-10-21 19:02:26 +053059# CFG_FTRACE_SUPPORT
Jens Wiklander16e53042019-06-27 10:19:38 +020060# Enable dumping ftrace data, not used unless secure world decides
61# to dump something
Sumit Garg2e526f42019-10-21 19:02:26 +053062CFG_FTRACE_SUPPORT ?= y
Jens Wiklander16e53042019-06-27 10:19:38 +020063
Jerome Forissier1d5cc962016-11-25 15:07:01 +010064# Default output directory.
65# May be absolute, or relative to the optee_client source directory.
Pascal Brand04ac4652014-06-03 16:12:38 +020066O ?= out
Jerome Forissier1d5cc962016-11-25 15:07:01 +010067
68# To be used instead of $(O) in sub-directories
69OO := $(if $(filter /%,$(O)),$(O),$(CURDIR)/../$(O))
Pascal Brand04ac4652014-06-03 16:12:38 +020070
71#########################################################################
72# Private Values #
73#########################################################################
74
75# Check that settings are coherent.
76