| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 1 | ######################################################################### |
| 2 | # Public variables # |
| 3 | # Developers may override these values when calling the makefile, # |
| 4 | # as for example # |
| Pascal Brand | 0b032b6 | 2014-11-19 15:54:57 +0100 | [diff] [blame] | 5 | # CFG_TEE_CLIENT_LOG_LEVEL=1 make # |
| Yongqin Liu | b6bfce9 | 2018-08-17 12:19:38 +0800 | [diff] [blame] | 6 | # Note: # |
| 7 | # Please do not use export to declare the variables, so that to avoid # |
| 8 | # compiling problem for android platform # |
| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 9 | ######################################################################### |
| 10 | |
| 11 | # CFG_TEE_CLIENT_LOG_LEVEL |
| 12 | # Client (User Non Secure) log level |
| Pascal Brand | 0b032b6 | 2014-11-19 15:54:57 +0100 | [diff] [blame] | 13 | # Supported values: 0 (no traces) to 4 (all traces) |
| 14 | CFG_TEE_CLIENT_LOG_LEVEL?=1 |
| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 15 | |
| 16 | # CFG_TEE_SUPP_LOG_LEVEL |
| 17 | # Supplicant log level |
| Pascal Brand | 0b032b6 | 2014-11-19 15:54:57 +0100 | [diff] [blame] | 18 | # Supported values: 0 (no traces) to 4 (all traces) |
| 19 | CFG_TEE_SUPP_LOG_LEVEL?=1 |
| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 20 | |
| Victor Chong | ae3eb9d | 2019-04-25 17:31:25 +0900 | [diff] [blame] | 21 | # CFG_TEE_FS_PARENT_PATH |
| 22 | # Path to folder that will contain TEE filesystem. |
| Victor Chong | 9cfd32a | 2019-04-30 19:09:50 +0900 | [diff] [blame] | 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. |
| Victor Chong | 83c7bcf | 2019-05-10 17:40:15 +0900 | [diff] [blame] | 26 | CFG_TEE_FS_PARENT_PATH ?= /data/tee |
| Yongqin Liu | 9a63135 | 2018-03-29 16:00:11 +0800 | [diff] [blame] | 27 | |
| sunny | 1ebcb5a | 2014-12-12 16:09:45 +0800 | [diff] [blame] | 28 | # CFG_TEE_CLIENT_LOG_FILE |
| Victor Chong | ae3eb9d | 2019-04-25 17:31:25 +0900 | [diff] [blame] | 29 | # The location of the client log file when logging to file is enabled. |
| Victor Chong | 5602227 | 2019-06-14 23:52:17 +0900 | [diff] [blame] | 30 | CFG_TEE_CLIENT_LOG_FILE ?= $(CFG_TEE_FS_PARENT_PATH)/teec.log |
| sunny | 1ebcb5a | 2014-12-12 16:09:45 +0800 | [diff] [blame] | 31 | |
| 32 | # CFG_TEE_CLIENT_LOAD_PATH |
| Victor Chong | ae3eb9d | 2019-04-25 17:31:25 +0900 | [diff] [blame] | 33 | # The location of the client library file. |
| l00176142 | f761a27 | 2017-08-28 19:37:09 +0800 | [diff] [blame] | 34 | CFG_TEE_CLIENT_LOAD_PATH ?= /lib |
| sunny | 1ebcb5a | 2014-12-12 16:09:45 +0800 | [diff] [blame] | 35 | |
| Etienne Carriere | f591143 | 2021-08-04 13:17:52 +0200 | [diff] [blame] | 36 | # CFG_TEE_SUPP_PLUGINS |
| 37 | # Enable (y) or disable (n) TEE supplicant plugin support |
| 38 | CFG_TEE_SUPP_PLUGINS ?= y |
| 39 | |
| Aleksandr Anisimov | 1e91cc7 | 2020-12-08 22:46:47 +0300 | [diff] [blame] | 40 | # CFG_TEE_PLUGIN_LOAD_PATH |
| 41 | # The location of the user plugins |
| 42 | CFG_TEE_PLUGIN_LOAD_PATH ?= /usr/lib/tee-supplicant/plugins/ |
| 43 | |
| David Brown | 81f0257 | 2016-08-02 11:51:32 -0600 | [diff] [blame] | 44 | # CFG_TA_TEST_PATH |
| Victor Chong | ae3eb9d | 2019-04-25 17:31:25 +0900 | [diff] [blame] | 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. |
| Victor Chong | 76d249c | 2019-04-26 02:03:05 +0900 | [diff] [blame] | 48 | CFG_TA_TEST_PATH ?= n |
| David Brown | 81f0257 | 2016-08-02 11:51:32 -0600 | [diff] [blame] | 49 | |
| Jens Wiklander | f79c74f | 2016-12-13 20:47:01 +0100 | [diff] [blame] | 50 | # CFG_GP_SOCKETS |
| Victor Chong | ae3eb9d | 2019-04-25 17:31:25 +0900 | [diff] [blame] | 51 | # Enable Global Platform Sockets support |
| Jens Wiklander | f79c74f | 2016-12-13 20:47:01 +0100 | [diff] [blame] | 52 | CFG_GP_SOCKETS ?= y |
| 53 | |
| Jens Wiklander | 16e5304 | 2019-06-27 10:19:38 +0200 | [diff] [blame] | 54 | # CFG_TA_GPROF_SUPPORT |
| 55 | # Enable dumping gprof data, not used unless secure world decides |
| 56 | # to dump something |
| 57 | CFG_TA_GPROF_SUPPORT ?= y |
| 58 | |
| Sumit Garg | 2e526f4 | 2019-10-21 19:02:26 +0530 | [diff] [blame] | 59 | # CFG_FTRACE_SUPPORT |
| Jens Wiklander | 16e5304 | 2019-06-27 10:19:38 +0200 | [diff] [blame] | 60 | # Enable dumping ftrace data, not used unless secure world decides |
| 61 | # to dump something |
| Sumit Garg | 2e526f4 | 2019-10-21 19:02:26 +0530 | [diff] [blame] | 62 | CFG_FTRACE_SUPPORT ?= y |
| Jens Wiklander | 16e5304 | 2019-06-27 10:19:38 +0200 | [diff] [blame] | 63 | |
| Jerome Forissier | 1d5cc96 | 2016-11-25 15:07:01 +0100 | [diff] [blame] | 64 | # Default output directory. |
| 65 | # May be absolute, or relative to the optee_client source directory. |
| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 66 | O ?= out |
| Jerome Forissier | 1d5cc96 | 2016-11-25 15:07:01 +0100 | [diff] [blame] | 67 | |
| 68 | # To be used instead of $(O) in sub-directories |
| 69 | OO := $(if $(filter /%,$(O)),$(O),$(CURDIR)/../$(O)) |
| Pascal Brand | 04ac465 | 2014-06-03 16:12:38 +0200 | [diff] [blame] | 70 | |
| 71 | ######################################################################### |
| 72 | # Private Values # |
| 73 | ######################################################################### |
| 74 | |
| 75 | # Check that settings are coherent. |
| 76 | |