conf.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. #ifndef _out_riscv_include_generated_conf_h_
  2. #define _out_riscv_include_generated_conf_h_
  3. #define CFG_AES_GCM_TABLE_BASED 1
  4. #define CFG_BOOT_SECONDARY_REQUEST 1
  5. #define CFG_CC_OPT_LEVEL 0
  6. #define CFG_COMPAT_GP10_DES 1
  7. /* CFG_CORE_ASLR is not set */
  8. /* CFG_CORE_BGET_BESTFIT is not set */
  9. #define CFG_CORE_BIGNUM_MAX_BITS 4096
  10. #define CFG_CORE_CLUSTER_SHIFT 2
  11. /* CFG_CORE_DEBUG_CHECK_STACKS is not set */
  12. /* CFG_CORE_DUMP_OOM is not set */
  13. #define CFG_CORE_DYN_SHM 1
  14. #define CFG_CORE_HEAP_SIZE 65536
  15. #define CFG_CORE_HUK_SUBKEY_COMPAT 1
  16. /* CFG_CORE_LARGE_PHYS_ADDR is not set */
  17. #define CFG_CORE_MAX_SYSCALL_RECURSION 4
  18. #define CFG_CORE_MBEDTLS_MPI 1
  19. #define CFG_CORE_NEX_HEAP_SIZE 16384
  20. /* CFG_CORE_PAGE_TAG_AND_IV is not set */
  21. #define CFG_CORE_RESERVED_SHM 1
  22. #define CFG_CORE_RISCV64_PA_BITS 32
  23. /* CFG_CORE_RODATA_NOEXEC is not set */
  24. #define CFG_CORE_RWDATA_NOEXEC 1
  25. /* CFG_CORE_SANITIZE_KADDRESS is not set */
  26. /* CFG_CORE_SANITIZE_UNDEFINED is not set */
  27. #define CFG_CORE_THREAD_SHIFT 0
  28. /* CFG_CORE_TPM_EVENT_LOG is not set */
  29. #define CFG_CORE_TZSRAM_EMUL_SIZE 458752
  30. /* CFG_CORE_UNMAP_CORE_AT_EL0 is not set */
  31. /* CFG_CORE_WORKAROUND_NSITR_CACHE_PRIME is not set */
  32. /* CFG_CORE_WORKAROUND_SPECTRE_BP is not set */
  33. /* CFG_CORE_WORKAROUND_SPECTRE_BP_SEC is not set */
  34. #define CFG_CRYPTO 1
  35. #define CFG_CRYPTOLIB_DIR core/lib/libtomcrypt
  36. #define CFG_CRYPTOLIB_NAME tomcrypt
  37. #define CFG_CRYPTOLIB_NAME_tomcrypt 1
  38. #define CFG_CRYPTO_AES 1
  39. /* CFG_CRYPTO_AES_GCM_FROM_CRYPTOLIB is not set */
  40. #define CFG_CRYPTO_CBC 1
  41. #define CFG_CRYPTO_CBC_MAC 1
  42. #define CFG_CRYPTO_CBC_MAC_BUNDLE_BLOCKS 64
  43. #define CFG_CRYPTO_CCM 1
  44. #define CFG_CRYPTO_CMAC 1
  45. #define CFG_CRYPTO_CONCAT_KDF 1
  46. #define CFG_CRYPTO_CTR 1
  47. #define CFG_CRYPTO_CTS 1
  48. #define CFG_CRYPTO_DES 1
  49. #define CFG_CRYPTO_DH 1
  50. #define CFG_CRYPTO_DSA 1
  51. #define CFG_CRYPTO_ECB 1
  52. #define CFG_CRYPTO_ECC 1
  53. #define CFG_CRYPTO_GCM 1
  54. #define CFG_CRYPTO_HKDF 1
  55. #define CFG_CRYPTO_HMAC 1
  56. #define CFG_CRYPTO_MD5 1
  57. #define CFG_CRYPTO_PBKDF2 1
  58. #define CFG_CRYPTO_RSA 1
  59. #define CFG_CRYPTO_RSASSA_NA1 1
  60. #define CFG_CRYPTO_SHA1 1
  61. #define CFG_CRYPTO_SHA224 1
  62. #define CFG_CRYPTO_SHA256 1
  63. #define CFG_CRYPTO_SHA384 1
  64. #define CFG_CRYPTO_SHA512 1
  65. #define CFG_CRYPTO_SHA512_256 1
  66. #define CFG_CRYPTO_SIZE_OPTIMIZATION 1
  67. #define CFG_CRYPTO_SM2_DSA 1
  68. #define CFG_CRYPTO_SM2_KEP 1
  69. #define CFG_CRYPTO_SM2_PKE 1
  70. #define CFG_CRYPTO_SM3 1
  71. #define CFG_CRYPTO_SM4 1
  72. #define CFG_CRYPTO_XTS 1
  73. #define CFG_DEBUG_INFO 1
  74. #define CFG_DEVICE_ENUM_PTA 1
  75. #define CFG_DT 1
  76. #define CFG_DTB_MAX_SIZE 0x100000
  77. #define CFG_DT_ADDR 0x1f00000
  78. /* CFG_EARLY_TA is not set */
  79. #define CFG_EARLY_TA_COMPRESS 1
  80. /* CFG_EMBED_DTB is not set */
  81. #define CFG_ENABLE_EMBEDDED_TESTS 1
  82. #define CFG_ENABLE_SCTLR_Z 1
  83. /* CFG_EXTERNAL_DTB_OVERLAY is not set */
  84. #define CFG_FTRACE_BUF_WHEN_FULL shift
  85. /* CFG_FTRACE_SUPPORT is not set */
  86. #define CFG_FTRACE_US_MS 10000
  87. /* CFG_GENERATE_DTB_OVERLAY is not set */
  88. /* CFG_GP_SOCKETS is not set */
  89. /* CFG_HWRNG_PTA is not set */
  90. #define CFG_HWSUPP_MEM_PERM_PXN 1
  91. #define CFG_HWSUPP_MEM_PERM_WXN 1
  92. #define CFG_IOPMP 1
  93. #define CFG_KERN_LINKER_ARCH riscv
  94. #define CFG_KERN_LINKER_FORMAT elf64-littleriscv
  95. #define CFG_LIBUTILS_WITH_ISOC 1
  96. #define CFG_LIGHT_UART 1
  97. /* CFG_LOCKDEP is not set */
  98. #define CFG_LOCKDEP_RECORD_STACK 1
  99. #define CFG_LPAE_ADDR_SPACE_BITS 32
  100. #define CFG_LTC_OPTEE_THREAD 1
  101. #define CFG_MMAP_REGIONS 13
  102. #define CFG_MSG_LONG_PREFIX_MASK 0x1a
  103. #define CFG_NUM_THREADS 4
  104. #define CFG_OPTEE_REVISION_MAJOR 3
  105. #define CFG_OPTEE_REVISION_MINOR 15
  106. #define CFG_OS_REV_REPORTS_GIT_SHA1 1
  107. /* CFG_PAGED_USER_TA is not set */
  108. #define CFG_PKCS11_TA_ALLOW_DIGEST_KEY 1
  109. #define CFG_PKCS11_TA_AUTH_TEE_IDENTITY 1
  110. #define CFG_PKCS11_TA_HEAP_SIZE (16 * 1024)
  111. #define CFG_PKCS11_TA_TOKEN_COUNT 3
  112. /* CFG_PL011 is not set */
  113. #define CFG_PLIC 1
  114. #define CFG_PREALLOC_RPC_CACHE 1
  115. #define CFG_PSCI_RV32 1
  116. #define CFG_REE_FS 1
  117. /* CFG_REE_FS_ALLOW_RESET is not set */
  118. #define CFG_REE_FS_TA 1
  119. /* CFG_REE_FS_TA_BUFFERED is not set */
  120. #define CFG_RESERVED_VASPACE_SIZE (1024 * 1024 * 10)
  121. /* CFG_RISCV32_core is not set */
  122. #define CFG_RISCV32_ta_riscv32 1
  123. #define CFG_RISCV64_core 1
  124. #define CFG_RISCV64_ldelf 1
  125. #define CFG_RISCV64_ta_riscv64 1
  126. /* CFG_RPMB_FS is not set */
  127. #define CFG_RPMB_FS_CACHE_ENTRIES 0
  128. /* CFG_RPMB_FS_DEBUG_DATA is not set */
  129. #define CFG_RPMB_FS_DEV_ID 0
  130. #define CFG_RPMB_FS_RD_ENTRIES 8
  131. /* CFG_RPMB_RESET_FAT is not set */
  132. /* CFG_RPMB_TESTKEY is not set */
  133. /* CFG_RPMB_WRITE_KEY is not set */
  134. /* CFG_SCMI_MSG_CLOCK is not set */
  135. /* CFG_SCMI_MSG_DRIVERS is not set */
  136. /* CFG_SCMI_MSG_RESET_DOMAIN is not set */
  137. /* CFG_SCMI_MSG_SMT is not set */
  138. /* CFG_SCMI_MSG_VOLTAGE_DOMAIN is not set */
  139. /* CFG_SCMI_PTA is not set */
  140. /* CFG_SCTLR_ALIGNMENT_CHECK is not set */
  141. #define CFG_SECSTOR_TA 1
  142. #define CFG_SECSTOR_TA_MGMT_PTA 1
  143. /* CFG_SECURE_DATA_PATH is not set */
  144. /* CFG_SECURE_PARTITION is not set */
  145. /* CFG_SECURE_TIME_SOURCE_CNTPCT is not set */
  146. #define CFG_SECURE_TIME_SOURCE_REE 1
  147. #define CFG_SHMEM_SIZE 0x00200000
  148. #define CFG_SHMEM_START 0xfee00000
  149. /* CFG_SHOW_CONF_ON_BOOT is not set */
  150. #define CFG_SM_NO_CYCLE_COUNTING 1
  151. #define CFG_STACK_THREAD_EXTRA 0
  152. #define CFG_STACK_TMP_EXTRA 0
  153. /* CFG_SYSCALL_FTRACE is not set */
  154. /* CFG_SYSCALL_WRAPPERS_MCOUNT is not set */
  155. #define CFG_SYSTEM_PTA 1
  156. #define CFG_TA_ASLR 1
  157. #define CFG_TA_ASLR_MAX_OFFSET_PAGES 128
  158. #define CFG_TA_ASLR_MIN_OFFSET_PAGES 0
  159. #define CFG_TA_BGET_TEST 1
  160. #define CFG_TA_BIGNUM_MAX_BITS 2048
  161. /* CFG_TA_FLOAT_SUPPORT is not set */
  162. /* CFG_TA_GPROF_SUPPORT is not set */
  163. #define CFG_TA_MBEDTLS 1
  164. #define CFG_TA_MBEDTLS_MPI 1
  165. #define CFG_TA_MBEDTLS_SELF_TEST 1
  166. #define CFG_TA_STRICT_ANNOTATION_CHECKS 1
  167. #define CFG_TEE_API_VERSION GPD-1.1-dev
  168. /* CFG_TEE_BENCHMARK is not set */
  169. #define CFG_TEE_CORE_DEBUG 1
  170. #define CFG_TEE_CORE_EMBED_INTERNAL_TESTS 1
  171. #define CFG_TEE_CORE_LOG_LEVEL 3
  172. /* CFG_TEE_CORE_MALLOC_DEBUG is not set */
  173. #define CFG_TEE_CORE_NB_CORE 4
  174. #define CFG_TEE_CORE_TA_TRACE 1
  175. #define CFG_TEE_FW_IMPL_VERSION FW_IMPL_UNDEF
  176. #define CFG_TEE_FW_MANUFACTURER FW_MAN_UNDEF
  177. #define CFG_TEE_IMPL_DESCR OPTEE
  178. #define CFG_TEE_MANUFACTURER LINARO
  179. #define CFG_TEE_RAM_VA_SIZE 0x00200000
  180. #define CFG_TEE_SDP_MEM_SIZE 0x00400000
  181. #define CFG_TEE_TA_LOG_LEVEL 1
  182. /* CFG_TEE_TA_MALLOC_DEBUG is not set */
  183. #define CFG_TZDRAM_SIZE 0x01000000
  184. #define CFG_TZDRAM_START 0xff000000
  185. /* CFG_ULIBS_MCOUNT is not set */
  186. /* CFG_ULIBS_SHARED is not set */
  187. #define CFG_UNWIND 1
  188. /* CFG_VIRTUALIZATION is not set */
  189. #define CFG_WITH_ARM_TRUSTED_FW 1
  190. /* CFG_WITH_PAGER is not set */
  191. #define CFG_WITH_SOFTWARE_PRNG 1
  192. #define CFG_WITH_STACK_CANARIES 1
  193. #define CFG_WITH_STATS 1
  194. /* CFG_WITH_STMM_SP is not set */
  195. #define CFG_WITH_SV39 1
  196. #define CFG_WITH_USER_TA 1
  197. /* CFG_WITH_VFP is not set */
  198. #define PLATFORM_FLAVOR light
  199. #define PLATFORM_FLAVOR_light 1
  200. #define PLATFORM_light 1
  201. #define _CFG_CORE_LTC_ACIPHER 1
  202. #define _CFG_CORE_LTC_AES 1
  203. /* _CFG_CORE_LTC_AES_ACCEL is not set */
  204. #define _CFG_CORE_LTC_AES_DESC 1
  205. #define _CFG_CORE_LTC_ASN1 1
  206. #define _CFG_CORE_LTC_AUTHENC 1
  207. #define _CFG_CORE_LTC_BIGNUM_MAX_BITS 4096
  208. #define _CFG_CORE_LTC_CBC 1
  209. #define _CFG_CORE_LTC_CBC_MAC 1
  210. #define _CFG_CORE_LTC_CCM 1
  211. /* _CFG_CORE_LTC_CE is not set */
  212. #define _CFG_CORE_LTC_CIPHER 1
  213. #define _CFG_CORE_LTC_CMAC 1
  214. #define _CFG_CORE_LTC_CTR 1
  215. #define _CFG_CORE_LTC_CTS 1
  216. #define _CFG_CORE_LTC_DES 1
  217. #define _CFG_CORE_LTC_DH 1
  218. #define _CFG_CORE_LTC_DSA 1
  219. #define _CFG_CORE_LTC_ECB 1
  220. #define _CFG_CORE_LTC_ECC 1
  221. #define _CFG_CORE_LTC_HASH 1
  222. #define _CFG_CORE_LTC_HMAC 1
  223. /* _CFG_CORE_LTC_HWSUPP_PMULL is not set */
  224. #define _CFG_CORE_LTC_MAC 1
  225. #define _CFG_CORE_LTC_MD5 1
  226. #define _CFG_CORE_LTC_MPI 1
  227. #define _CFG_CORE_LTC_OPTEE_THREAD 1
  228. /* _CFG_CORE_LTC_PAGER is not set */
  229. #define _CFG_CORE_LTC_RSA 1
  230. #define _CFG_CORE_LTC_SHA1 1
  231. /* _CFG_CORE_LTC_SHA1_ACCEL is not set */
  232. #define _CFG_CORE_LTC_SHA224 1
  233. #define _CFG_CORE_LTC_SHA256 1
  234. /* _CFG_CORE_LTC_SHA256_ACCEL is not set */
  235. #define _CFG_CORE_LTC_SHA256_DESC 1
  236. #define _CFG_CORE_LTC_SHA384 1
  237. #define _CFG_CORE_LTC_SHA384_DESC 1
  238. #define _CFG_CORE_LTC_SHA512 1
  239. #define _CFG_CORE_LTC_SHA512_256 1
  240. #define _CFG_CORE_LTC_SHA512_DESC 1
  241. #define _CFG_CORE_LTC_SIZE_OPTIMIZATION 1
  242. #define _CFG_CORE_LTC_SM2_DSA 1
  243. #define _CFG_CORE_LTC_SM2_KEP 1
  244. #define _CFG_CORE_LTC_SM2_PKE 1
  245. /* _CFG_CORE_LTC_VFP is not set */
  246. #define _CFG_CORE_LTC_XTS 1
  247. #define _CFG_FTRACE_BUF_WHEN_FULL_shift 1
  248. /* _CFG_USE_DTB_OVERLAY is not set */
  249. #endif