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 | # |
Pascal Brand | b5569a6 | 2016-01-08 15:14:30 +0100 | [diff] [blame] | 16 | # Actual values used during the build are output to $(out-dir)/conf.mk |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 17 | # (CFG_* variables only). |
| 18 | |
Jerome Forissier | a75f2e1 | 2015-07-07 19:07:50 +0200 | [diff] [blame] | 19 | # Cross-compiler prefix and suffix |
| 20 | CROSS_COMPILE ?= arm-linux-gnueabihf- |
| 21 | COMPILER ?= gcc |
| 22 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 23 | # Compiler warning level. |
| 24 | # Supported values: undefined, 1, 2 and 3. 3 gives more warnings. |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 25 | WARNS ?= 3 |
| 26 | |
Pascal Brand | 7c876f1 | 2015-03-02 16:43:19 +0100 | [diff] [blame] | 27 | # Define NOWERROR=1 so that warnings are not treated as errors |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 28 | # NOWERROR=1 |
| 29 | |
| 30 | # Define DEBUG=1 to compile with -g option |
| 31 | # DEBUG=1 |
| 32 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 33 | # If 1, debug mode of the tee firmware (CPU restart, Core Status) |
Pascal Brand | 31908ae | 2015-04-28 07:55:19 +0200 | [diff] [blame] | 34 | CFG_TEE_CORE_DEBUG ?= 0 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 35 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 36 | # Max level of the tee core traces. 0 means disable, 4 is max. |
| 37 | # Supported values: 0 (no traces) to 4 (all traces) |
| 38 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 39 | # dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL |
| 40 | CFG_TEE_CORE_LOG_LEVEL ?= 1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 41 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 42 | # TA and TEECore log level |
| 43 | # Supported values: 0 (no traces) to 4 (all traces) |
| 44 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 45 | # dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL |
| 46 | CFG_TEE_TA_LOG_LEVEL ?= 1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 47 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 48 | # TA enablement |
| 49 | # When defined to "y", TA traces are output according to |
| 50 | # CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all |
| 51 | CFG_TEE_CORE_TA_TRACE ?= y |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 52 | |
Jens Wiklander | 94e8a4f | 2015-10-26 14:30:32 +0100 | [diff] [blame] | 53 | # Define TEE_Panic as a macro to help debugging panics caused by calls to |
| 54 | # TEE_Panic. This flag can have a different value when later compiling the |
| 55 | # TA |
| 56 | CFG_TEE_PANIC_DEBUG ?= y |
| 57 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 58 | # If 1, enable debug features in TA memory allocation. |
| 59 | # Debug features include check of buffer overflow, statistics, mark/check heap |
| 60 | # feature. |
| 61 | CFG_TEE_CORE_USER_MEM_DEBUG ?= 1 |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 62 | |
SY Chiu | 0fcbddd | 2015-11-11 19:10:42 +0800 | [diff] [blame] | 63 | # If y, enable memory leak detection feature in bget memory allocator. |
| 64 | CFG_TEE_CORE_MALLOC_DEBUG ?= n |
| 65 | CFG_TEE_TA_MALLOC_DEBUG ?= n |
| 66 | |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 67 | # PRNG configuration |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 68 | # If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided |
| 69 | # software PRNG implementation is used. |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 70 | # Otherwise, you need to implement hw_get_random_byte() for your platform |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 71 | CFG_WITH_SOFTWARE_PRNG ?= y |
Jerome Forissier | 120c43a | 2015-03-24 11:08:31 +0100 | [diff] [blame] | 72 | |
| 73 | # Number of threads |
| 74 | CFG_NUM_THREADS ?= 2 |
Cedric Chaumont | ab35d7a | 2015-04-28 12:19:53 +0200 | [diff] [blame] | 75 | |
| 76 | # API implementation version |
| 77 | CFG_TEE_API_VERSION ?= GPD-1.1-dev |
| 78 | |
| 79 | # Implementation description (implementation-dependent) |
| 80 | CFG_TEE_IMPL_DESCR ?= OPTEE |
| 81 | |
| 82 | # Trusted OS implementation version |
Jens Wiklander | 4bf425c | 2015-12-21 15:06:08 +0100 | [diff] [blame] | 83 | TEE_IMPL_VERSION ?= $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown) |
Cedric Chaumont | ab35d7a | 2015-04-28 12:19:53 +0200 | [diff] [blame] | 84 | |
| 85 | # Trusted OS implementation manufacturer name |
| 86 | CFG_TEE_MANUFACTURER ?= LINARO |
| 87 | |
| 88 | # Trusted firmware version |
| 89 | CFG_TEE_FW_IMPL_VERSION ?= FW_IMPL_UNDEF |
| 90 | |
| 91 | # Trusted OS implementation manufacturer name |
| 92 | CFG_TEE_FW_MANUFACTURER ?= FW_MAN_UNDEF |
| 93 | |
James Kung | a822461 | 2015-03-16 16:25:23 +0800 | [diff] [blame] | 94 | # Encrypted File System Support |
James Kung | c785657 | 2015-06-05 16:07:44 +0800 | [diff] [blame] | 95 | CFG_ENC_FS ?= y |
Jens Wiklander | bc42074 | 2015-05-05 14:59:15 +0200 | [diff] [blame] | 96 | |
SY Chiu | 2ab7da0 | 2015-10-27 11:00:07 +0800 | [diff] [blame] | 97 | # File System Block Cache Support |
| 98 | CFG_FS_BLOCK_CACHE ?= n |
| 99 | |
Jens Wiklander | bc42074 | 2015-05-05 14:59:15 +0200 | [diff] [blame] | 100 | # Embed public part of this key in OP-TEE OS |
| 101 | TA_SIGN_KEY ?= keys/default_ta.pem |
Jerome Forissier | c4553de | 2015-11-25 09:40:18 +0100 | [diff] [blame] | 102 | |
| 103 | # Include lib/libutils/isoc in the build? Most platforms need this, but some |
| 104 | # may not because they obtain the isoc functions from elsewhere |
| 105 | CFG_LIBUTILS_WITH_ISOC ?= y |
Jens Wiklander | fce4cfa | 2015-12-10 15:30:07 +0100 | [diff] [blame] | 106 | |
| 107 | # Floating point support for TAs default on only for arm32 core |
| 108 | CFG_TA_FLOAT_SUPPORT ?= $(CFG_ARM32_core) |