Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 1 | # Default configuration values for OP-TEE core (all platforms). |
| 2 | # |
| 3 | # Platform-specific overrides are in core/arch/arm32/plat-*/conf.mk. |
| 4 | # Some subsystem-specific defaults are not here but rather in */sub.mk. |
| 5 | # |
| 6 | # Configuration values may be assigned from multiple sources. |
| 7 | # From higher to lower priority: |
| 8 | # |
| 9 | # 1. Make arguments ('make CFG_FOO=bar...') |
| 10 | # 2. The file specified by $(CFG_OPTEE_CONFIG) (if defined) |
| 11 | # 3. The environment ('CFG_FOO=bar make...') |
| 12 | # 4. The platform-specific configuration file: core/arch/arm32/plat-*/conf.mk |
| 13 | # 5. This file |
| 14 | # 6. Subsystem-specific makefiles (*/sub.mk) |
| 15 | # |
| 16 | # Actual values used during the build are output to $(out-dir)/core/conf.mk |
| 17 | # (CFG_* variables only). |
| 18 | |
| 19 | # Compiler warning level. |
| 20 | # Supported values: undefined, 1, 2 and 3. 3 gives more warnings. |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 21 | WARNS ?= 3 |
| 22 | |
Pascal Brand | 7c876f1 | 2015-03-02 16:43:19 +0100 | [diff] [blame] | 23 | # Define NOWERROR=1 so that warnings are not treated as errors |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 24 | # NOWERROR=1 |
| 25 | |
| 26 | # Define DEBUG=1 to compile with -g option |
| 27 | # DEBUG=1 |
| 28 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 29 | # If 1, debug mode of the tee firmware (CPU restart, Core Status) |
Pascal Brand | 31908ae | 2015-04-28 07:55:19 +0200 | [diff] [blame] | 30 | CFG_TEE_CORE_DEBUG ?= 0 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 31 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 32 | # Max level of the tee core traces. 0 means disable, 4 is max. |
| 33 | # Supported values: 0 (no traces) to 4 (all traces) |
| 34 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 35 | # dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL |
| 36 | CFG_TEE_CORE_LOG_LEVEL ?= 1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 37 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 38 | # TA and TEECore log level |
| 39 | # Supported values: 0 (no traces) to 4 (all traces) |
| 40 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 41 | # dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL |
| 42 | CFG_TEE_TA_LOG_LEVEL ?= 1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 43 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 44 | # TA enablement |
| 45 | # When defined to "y", TA traces are output according to |
| 46 | # CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all |
| 47 | CFG_TEE_CORE_TA_TRACE ?= y |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 48 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 49 | # If 1, enable debug features in TA memory allocation. |
| 50 | # Debug features include check of buffer overflow, statistics, mark/check heap |
| 51 | # feature. |
| 52 | CFG_TEE_CORE_USER_MEM_DEBUG ?= 1 |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 53 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 54 | # PRNG configuration |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 55 | # If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided |
| 56 | # software PRNG implementation is used. |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 57 | # Otherwise, you need to implement hw_get_random_byte() for your platform |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 58 | CFG_WITH_SOFTWARE_PRNG ?= y |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 59 | |
| 60 | # Number of threads |
| 61 | CFG_NUM_THREADS ?= 2 |
Cedric Chaumont | ab35d7a | 2015-04-28 12:19:53 +0200 | [diff] [blame] | 62 | |
| 63 | # API implementation version |
| 64 | CFG_TEE_API_VERSION ?= GPD-1.1-dev |
| 65 | |
| 66 | # Implementation description (implementation-dependent) |
| 67 | CFG_TEE_IMPL_DESCR ?= OPTEE |
| 68 | |
| 69 | # Trusted OS implementation version |
| 70 | CFG_TEE_IMPL_VERSION ?= $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown) |
| 71 | |
| 72 | # Trusted OS implementation manufacturer name |
| 73 | CFG_TEE_MANUFACTURER ?= LINARO |
| 74 | |
| 75 | # Trusted firmware version |
| 76 | CFG_TEE_FW_IMPL_VERSION ?= FW_IMPL_UNDEF |
| 77 | |
| 78 | # Trusted OS implementation manufacturer name |
| 79 | CFG_TEE_FW_MANUFACTURER ?= FW_MAN_UNDEF |
| 80 | |
James Kung | a822461 | 2015-03-16 16:25:23 +0800 | [diff] [blame] | 81 | # Encrypted File System Support |
| 82 | CFG_ENC_FS ?= y |