Config.in 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. config BR2_TARGET_OPTEE_OS
  2. bool "optee_os"
  3. depends on BR2_ARM_CPU_ARMV8A || BR2_ARM_CPU_ARMV7A
  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 "3.21.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 "3.21.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_CORE
  76. bool "Build core"
  77. default y
  78. help
  79. This option will build and install the OP-TEE core
  80. boot images.
  81. config BR2_TARGET_OPTEE_OS_SDK
  82. bool "Build TA devkit"
  83. default y
  84. help
  85. This option will build and install the OP-TEE development
  86. kit for building OP-TEE trusted application images. It is
  87. installed in the staging directory /lib/optee.
  88. config BR2_TARGET_OPTEE_OS_SERVICES
  89. bool "Build service TAs and libs"
  90. default y
  91. select BR2_TARGET_OPTEE_OS_CORE
  92. help
  93. This option installs the service trusted applications and
  94. trusted shared libraries built from OP-TEE OS source tree.
  95. These are installed in target /lib/optee_armtz directory
  96. as other trusted applications. At runtime OP-TEE OS can
  97. load these from this non-secure filesystem/directory into
  98. the secure world for execution.
  99. config BR2_TARGET_OPTEE_OS_PLATFORM
  100. string "Target platform (mandatory)"
  101. help
  102. Value for the mandated PLATFORM build directive provided to
  103. OP-TEE OS.
  104. config BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR
  105. string "Target platform flavor (optional)"
  106. help
  107. Value for the optional PLATFORM_FLAVOR build directive
  108. provided to OP-TEE OS.
  109. config BR2_TARGET_OPTEE_OS_CUSTOM_DTS_PATH
  110. string "Device Tree Source file paths"
  111. help
  112. Space-separated list of paths to device tree source files
  113. that will be copied to core/arch/arm/dts/ before starting
  114. the build.
  115. To use this device tree source file, the OP-TEE OS
  116. configuration must refer to it with the
  117. CFG_EMBED_DTB_SOURCE_FILE option and no platform flavor
  118. needs to be specified.
  119. config BR2_TARGET_OPTEE_OS_ADDITIONAL_VARIABLES
  120. string "Additional build variables"
  121. help
  122. Additional parameters for the OP-TEE OS build
  123. E.g. 'CFG_TEE_CORE_LOG_LEVEL=3 CFG_UNWIND=y'
  124. config BR2_TARGET_OPTEE_OS_CORE_IMAGES
  125. string "Binary boot images"
  126. default "tee.bin tee-*_v2.bin"
  127. help
  128. Names of generated image files that are installed in the
  129. output images/ directory.
  130. endif # BR2_TARGET_OPTEE_OS