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_TRUSTKERNEL_TEE_SUPPORT |
| 36 | C_OPTION += -DCFG_TRUSTKERNEL_TEE_SUPPORT=${CFG_TRUSTKERNEL_TEE_SUPPORT} |
| 37 | export CFG_TRUSTKERNEL_TEE_SUPPORT |
| 38 | endif |
| 39 | |
| 40 | ifdef CFG_OPTEE_TEE_SUPPORT |
| 41 | C_OPTION += -DCFG_OPTEE_TEE_SUPPORT=${CFG_OPTEE_TEE_SUPPORT} |
| 42 | export CFG_OPTEE_TEE_SUPPORT |
| 43 | endif |
| 44 | |
| 45 | ifdef CFG_TEE_SECURE_MEM_PROTECTED |
| 46 | C_OPTION += -DCFG_TEE_SECURE_MEM_PROTECTED=${CFG_TEE_SECURE_MEM_PROTECTED} |
| 47 | export CFG_TEE_SECURE_MEM_PROTECTED |
| 48 | endif |
| 49 | |
| 50 | ifdef CFG_TEE_SECMEM_SIZE |
| 51 | C_OPTION += -DCFG_TEE_SECMEM_SIZE=${CFG_TEE_SECMEM_SIZE} |
| 52 | export CFG_TEE_SECMEM_SIZE |
| 53 | endif |
| 54 | |
| 55 | ifdef CFG_TZ_SRAMROM_SUPPORT |
| 56 | C_OPTION += -DCFG_TZ_SRAMROM_SUPPORT=${CFG_TZ_SRAMROM_SUPPORT} |
| 57 | export CFG_TZ_SRAMROM_SUPPORT |
| 58 | endif |
| 59 | |
| 60 | ifdef CFG_TZ_UART_APDMA_SUPPORT |
| 61 | C_OPTION += -DCFG_TZ_UART_APDMA_SUPPORT=${CFG_TZ_UART_APDMA_SUPPORT} |
| 62 | export CFG_TZ_UART_APDMA_SUPPORT |
| 63 | endif |
| 64 | |
| 65 | ifdef CFG_TINYSYS_SCP_SUPPORT |
| 66 | C_OPTION += -DCFG_TINYSYS_SCP_SUPPORT=${CFG_TINYSYS_SCP_SUPPORT} |
| 67 | export CFG_TINYSYS_SCP_SUPPORT |
| 68 | endif |