Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 1 | # WARNS from undefined, 1, 2 and 3. 3 means we have the most warning messages |
| 2 | WARNS ?= 3 |
| 3 | |
Pascal Brand | 7c876f1 | 2015-03-02 16:43:19 +0100 | [diff] [blame] | 4 | # Define NOWERROR=1 so that warnings are not treated as errors |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 5 | # NOWERROR=1 |
| 6 | |
| 7 | # Define DEBUG=1 to compile with -g option |
| 8 | # DEBUG=1 |
| 9 | |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 10 | # CFG_TEE_FW_DEBUG |
| 11 | # If 1, debug mode of the tee firmware (CPU restart, Core Status) |
| 12 | CFG_TEE_FW_DEBUG?=0 |
| 13 | |
| 14 | # CFG_TEE_CORE_LOG_LEVEL |
Pascal Brand | e0042c8 | 2014-11-17 13:42:52 +0100 | [diff] [blame] | 15 | # Max level of the tee core traces. 0 means disable, 4 is max. |
| 16 | # Supported values: 0 (no traces) to 4 (all traces) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 17 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 18 | # dynamically changes via debugfs in the range 1 => CFG_TEE_CORE_LOG_LEVEL |
Pascal Brand | e0042c8 | 2014-11-17 13:42:52 +0100 | [diff] [blame] | 19 | CFG_TEE_CORE_LOG_LEVEL?=1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 20 | |
| 21 | # CFG_TEE_TA_LOG_LEVEL |
| 22 | # TA and TEECore log level |
Pascal Brand | e0042c8 | 2014-11-17 13:42:52 +0100 | [diff] [blame] | 23 | # Supported values: 0 (no traces) to 4 (all traces) |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 24 | # If CFG_TEE_DRV_DEBUGFS is set, the level of traces to print can be |
| 25 | # dynamically changes via debugfs in the range 1 => CFG_TEE_TA_LOG_LEVEL |
Pascal Brand | e0042c8 | 2014-11-17 13:42:52 +0100 | [diff] [blame] | 26 | CFG_TEE_TA_LOG_LEVEL?=1 |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 27 | |
Pascal Brand | 7c876f1 | 2015-03-02 16:43:19 +0100 | [diff] [blame] | 28 | # CFG_TEE_CORE_TA_TRACE |
| 29 | # TA enablement |
| 30 | # When defined to "y", TA traces are output according to |
| 31 | # CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all |
| 32 | CFG_TEE_CORE_TA_TRACE?=y |
Pascal Brand | b010477 | 2014-06-12 15:56:20 +0200 | [diff] [blame] | 33 | |
| 34 | # If 1, enable debug features of the user mem module. This module track memory |
| 35 | # allocation of the user ta. |
| 36 | # Debug features include check of buffer overflow, statistics, |
| 37 | # marck/check heap feature |
| 38 | # Enabling this could decrease efficiency |
| 39 | CFG_TEE_CORE_USER_MEM_DEBUG?=1 |
SY Chiu | 7018ae0 | 2015-03-04 15:04:45 +0800 | [diff] [blame] | 40 | |
| 41 | |
| 42 | # PRNG Configuration: |
| 43 | # |
| 44 | # If CFG_WITH_SOFTWARE_PRNG is enabled, crypto provider provided |
| 45 | # software PRNG implementation is used. |
| 46 | # |
| 47 | # Otherwise, you need to implement hw_get_random_byte() for your platform |
| 48 | # |
| 49 | CFG_WITH_SOFTWARE_PRNG ?= y |