rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | |
| 2 | ifdef MACH_TYPE |
| 3 | C_OPTION += -DMACH_TYPE_$(shell echo $(MACH_TYPE) | tr '[a-z]' '[A-Z]') |
| 4 | endif |
| 5 | |
| 6 | ifdef BASE_ADDR |
| 7 | C_OPTION += -DBASE_ADDR=${BASE_ADDR} |
| 8 | endif |
| 9 | |
| 10 | ifdef CFG_ATF_LOG_SUPPORT |
| 11 | C_OPTION += -DCFG_ATF_LOG_SUPPORT=${CFG_ATF_LOG_SUPPORT} |
| 12 | export CFG_ATF_LOG_SUPPORT |
| 13 | endif |
| 14 | |
| 15 | ifdef CFG_ATF_LOG_BUFFER_ADDR |
| 16 | C_OPTION += -DCFG_ATF_LOG_BUFFER_ADDR=${CFG_ATF_LOG_BUFFER_ADDR} |
| 17 | export CFG_ATF_LOG_BUFFER_ADDR |
| 18 | endif |
| 19 | |
| 20 | ifdef TRUSTEDOS_ENTRYPOINT |
| 21 | C_OPTION += -DTRUSTEDOS_ENTRYPOINT=${TRUSTEDOS_ENTRYPOINT} |
| 22 | export TRUSTEDOS_ENTRYPOINT |
| 23 | endif |
| 24 | |
| 25 | ifdef CFG_TEE_SUPPORT |
| 26 | C_OPTION += -DCFG_TEE_SUPPORT=${CFG_TEE_SUPPORT} |
| 27 | export CFG_TEE_SUPPORT |
| 28 | endif |
| 29 | |
| 30 | ifdef CFG_TRUSTONIC_TEE_SUPPORT |
| 31 | C_OPTION += -DCFG_TRUSTONIC_TEE_SUPPORT=${CFG_TRUSTONIC_TEE_SUPPORT} |
| 32 | export CFG_TRUSTONIC_TEE_SUPPORT |
| 33 | endif |
| 34 | |
| 35 | ifdef CFG_TEE_SECURE_MEM_PROTECTED |
| 36 | C_OPTION += -DCFG_TEE_SECURE_MEM_PROTECTED=${CFG_TEE_SECURE_MEM_PROTECTED} |
| 37 | export CFG_TEE_SECURE_MEM_PROTECTED |
| 38 | endif |
| 39 | |
| 40 | ifdef CFG_TEE_SECMEM_SIZE |
| 41 | C_OPTION += -DCFG_TEE_SECMEM_SIZE=${CFG_TEE_SECMEM_SIZE} |
| 42 | export CFG_TEE_SECMEM_SIZE |
| 43 | endif |
| 44 | |
| 45 | ifdef CFG_TZ_SRAMROM_SUPPORT |
| 46 | C_OPTION += -DCFG_TZ_SRAMROM_SUPPORT=${CFG_TZ_SRAMROM_SUPPORT} |
| 47 | export CFG_TZ_SRAMROM_SUPPORT |
| 48 | endif |
| 49 | |
| 50 | ifdef CFG_DEVAPC_SET_PROTECT |
| 51 | C_OPTION += -DCFG_DEVAPC_SET_PROTECT=${CFG_DEVAPC_SET_PROTECT} |
| 52 | export CFG_DEVAPC_SET_PROTECT |
| 53 | endif |
| 54 | |
| 55 | ifdef CFG_TZ_UART_APDMA_SUPPORT |
| 56 | C_OPTION += -DCFG_TZ_UART_APDMA_SUPPORT=${CFG_TZ_UART_APDMA_SUPPORT} |
| 57 | export CFG_TZ_UART_APDMA_SUPPORT |
| 58 | endif |