Config.in 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. config BR2_TARGET_OPTEE_OS
  2. bool "optee_os"
  3. depends on BR2_ARM_CPU_ARMV8A || BR2_ARM_CPU_ARMV7A || BR2_RISCV_64
  4. help
  5. OP-TEE OS provides the secure world boot image and the trust
  6. application development kit of the OP-TEE project. OP-TEE OS
  7. also provides generic trusted application one can embedded
  8. into its system.
  9. http://github.com/OP-TEE/optee_os
  10. if BR2_TARGET_OPTEE_OS
  11. choice
  12. prompt "OP-TEE OS version"
  13. default BR2_TARGET_OPTEE_OS_LATEST if BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  14. help
  15. Select the version of OP-TEE OS you want to use
  16. config BR2_TARGET_OPTEE_OS_LATEST
  17. bool "4.3.0"
  18. depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  19. select BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
  20. help
  21. Use the latest release tag from the OP-TEE OS official Git
  22. repository.
  23. config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
  24. bool "Custom tarball"
  25. help
  26. This option allows to specify a URL pointing to an OP-TEE OS
  27. source tarball. This URL can use any protocol recognized by
  28. Buildroot, like http://, ftp://, file:// or scp://.
  29. When pointing to a local tarball using file://, you may want
  30. to use a make variable like $(TOPDIR) to reference the root of
  31. the Buildroot tree.
  32. config BR2_TARGET_OPTEE_OS_CUSTOM_GIT
  33. bool "Custom Git repository"
  34. help
  35. Use a custom version fetched from a Git repository.
  36. endchoice
  37. if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
  38. config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL_LOCATION
  39. string "URL of custom OP-TEE OS tarball"
  40. endif
  41. if BR2_TARGET_OPTEE_OS_CUSTOM_GIT
  42. config BR2_TARGET_OPTEE_OS_CUSTOM_REPO_URL
  43. string "URL of custom repository"
  44. depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT
  45. help
  46. Specific location of the reference source tree Git
  47. repository.
  48. config BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION
  49. string "Custom repository version"
  50. depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT
  51. help
  52. Revision to use in the typical format used by Git, i.e a
  53. SHA1 or a tag.
  54. endif
  55. config BR2_TARGET_OPTEE_OS_VERSION
  56. string
  57. default "4.3.0" if BR2_TARGET_OPTEE_OS_LATEST
  58. default "custom" if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
  59. default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \
  60. if BR2_TARGET_OPTEE_OS_CUSTOM_GIT
  61. config BR2_TARGET_OPTEE_OS_NEEDS_DTC
  62. bool "OP-TEE OS needs dtc"
  63. select BR2_PACKAGE_HOST_DTC
  64. help
  65. Select this option if your OP-TEE OS platform configuration
  66. requires the Device Tree compiler to be available.
  67. config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
  68. bool "OP-TEE OS needs host-python-cryptography"
  69. depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
  70. help
  71. OP-TEE OS version below 3.16 used python-pycryptodomex
  72. package in python scripts. Newer version uses
  73. python-cryptography. Select this option if optee-os needs
  74. python-cryptography to be built.
  75. config BR2_TARGET_OPTEE_OS_NEEDS_CMAKE
  76. bool "OP-TEE OS needs cmake"
  77. help
  78. Select this option if your OP-TEE OS platform configuration
  79. requires the cmake build system to be available.
  80. config BR2_TARGET_OPTEE_OS_CORE
  81. bool "Build core"
  82. default y
  83. help
  84. This option will build and install the OP-TEE core
  85. boot images.
  86. config BR2_TARGET_OPTEE_OS_SDK
  87. bool "Build TA devkit"
  88. default y
  89. help
  90. This option will build and install the OP-TEE development
  91. kit for building OP-TEE trusted application images. It is
  92. installed in the staging directory /lib/optee.
  93. config BR2_TARGET_OPTEE_OS_SERVICES
  94. bool "Build service TAs and libs"
  95. default y
  96. select BR2_TARGET_OPTEE_OS_CORE
  97. help
  98. This option installs the service trusted applications and
  99. trusted shared libraries built from OP-TEE OS source tree.
  100. These are installed in target /lib/optee_armtz directory
  101. as other trusted applications. At runtime OP-TEE OS can
  102. load these from this non-secure filesystem/directory into
  103. the secure world for execution.
  104. config BR2_TARGET_OPTEE_OS_PLATFORM
  105. string "Target platform (mandatory)"
  106. help
  107. Value for the mandated PLATFORM build directive provided to
  108. OP-TEE OS.
  109. config BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR
  110. string "Target platform flavor (optional)"
  111. help
  112. Value for the optional PLATFORM_FLAVOR build directive
  113. provided to OP-TEE OS.
  114. config BR2_TARGET_OPTEE_OS_CUSTOM_DTS_PATH
  115. string "Device Tree Source file paths"
  116. help
  117. Space-separated list of paths to device tree source files
  118. that will be copied to core/arch/arm/dts/ before starting
  119. the build.
  120. To use this device tree source file, the OP-TEE OS
  121. configuration must refer to it with the
  122. CFG_EMBED_DTB_SOURCE_FILE option and no platform flavor
  123. needs to be specified.
  124. config BR2_TARGET_OPTEE_OS_ADDITIONAL_VARIABLES
  125. string "Additional build variables"
  126. help
  127. Additional parameters for the OP-TEE OS build
  128. E.g. 'CFG_TEE_CORE_LOG_LEVEL=3 CFG_UNWIND=y'
  129. config BR2_TARGET_OPTEE_OS_CORE_IMAGES
  130. string "Binary boot images"
  131. default "tee.bin tee-*_v2.bin"
  132. help
  133. Names of generated image files that are installed in the
  134. output images/ directory.
  135. endif # BR2_TARGET_OPTEE_OS