2019-01-30 11:47:23 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS
|
|
|
|
bool "optee_os"
|
|
|
|
depends on BR2_ARM_CPU_ARMV8A || BR2_ARM_CPU_ARMV7A
|
|
|
|
help
|
|
|
|
OP-TEE OS provides the secure world boot image and the trust
|
|
|
|
application development kit of the OP-TEE project. OP-TEE OS
|
|
|
|
also provides generic trusted application one can embedded
|
|
|
|
into its system.
|
|
|
|
|
|
|
|
http://github.com/OP-TEE/optee_os
|
|
|
|
|
|
|
|
if BR2_TARGET_OPTEE_OS
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "OP-TEE OS version"
|
2022-03-19 10:49:39 +01:00
|
|
|
default BR2_TARGET_OPTEE_OS_LATEST if BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
2019-01-30 11:47:23 +01:00
|
|
|
help
|
|
|
|
Select the version of OP-TEE OS you want to use
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_LATEST
|
2024-05-02 18:26:51 +02:00
|
|
|
bool "4.2.0"
|
2022-03-18 14:24:23 +01:00
|
|
|
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
|
|
|
select BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
|
2019-01-30 11:47:23 +01:00
|
|
|
help
|
|
|
|
Use the latest release tag from the OP-TEE OS official Git
|
|
|
|
repository.
|
|
|
|
|
2022-06-22 10:34:33 +02:00
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
|
|
|
|
bool "Custom tarball"
|
|
|
|
help
|
2022-07-04 13:27:04 +02:00
|
|
|
This option allows to specify a URL pointing to an OP-TEE OS
|
2022-06-22 10:34:33 +02:00
|
|
|
source tarball. This URL can use any protocol recognized by
|
|
|
|
Buildroot, like http://, ftp://, file:// or scp://.
|
|
|
|
|
|
|
|
When pointing to a local tarball using file://, you may want
|
|
|
|
to use a make variable like $(TOPDIR) to reference the root of
|
|
|
|
the Buildroot tree.
|
|
|
|
|
2019-01-30 11:47:23 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_GIT
|
|
|
|
bool "Custom Git repository"
|
|
|
|
help
|
|
|
|
Use a custom version fetched from a Git repository.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2022-06-22 10:34:33 +02:00
|
|
|
if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL_LOCATION
|
|
|
|
string "URL of custom OP-TEE OS tarball"
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2019-01-30 11:47:23 +01:00
|
|
|
if BR2_TARGET_OPTEE_OS_CUSTOM_GIT
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_REPO_URL
|
|
|
|
string "URL of custom repository"
|
|
|
|
depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT
|
|
|
|
help
|
|
|
|
Specific location of the reference source tree Git
|
|
|
|
repository.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION
|
|
|
|
string "Custom repository version"
|
|
|
|
depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT
|
|
|
|
help
|
|
|
|
Revision to use in the typical format used by Git, i.e a
|
|
|
|
SHA1 or a tag.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_VERSION
|
|
|
|
string
|
2024-05-02 18:26:51 +02:00
|
|
|
default "4.2.0" if BR2_TARGET_OPTEE_OS_LATEST
|
2022-06-22 10:34:33 +02:00
|
|
|
default "custom" if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL
|
2019-01-30 11:47:23 +01:00
|
|
|
default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \
|
|
|
|
if BR2_TARGET_OPTEE_OS_CUSTOM_GIT
|
|
|
|
|
2022-03-14 16:31:04 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_NEEDS_DTC
|
|
|
|
bool "OP-TEE OS needs dtc"
|
|
|
|
select BR2_PACKAGE_HOST_DTC
|
|
|
|
help
|
|
|
|
Select this option if your OP-TEE OS platform configuration
|
|
|
|
requires the Device Tree compiler to be available.
|
|
|
|
|
2022-03-18 14:24:22 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY
|
|
|
|
bool "OP-TEE OS needs host-python-cryptography"
|
|
|
|
depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
|
|
|
|
help
|
|
|
|
OP-TEE OS version below 3.16 used python-pycryptodomex
|
|
|
|
package in python scripts. Newer version uses
|
|
|
|
python-cryptography. Select this option if optee-os needs
|
|
|
|
python-cryptography to be built.
|
|
|
|
|
2019-01-30 11:47:23 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_CORE
|
|
|
|
bool "Build core"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option will build and install the OP-TEE core
|
|
|
|
boot images.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_SDK
|
|
|
|
bool "Build TA devkit"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option will build and install the OP-TEE development
|
|
|
|
kit for building OP-TEE trusted application images. It is
|
|
|
|
installed in the staging directory /lib/optee.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_SERVICES
|
2019-05-14 10:53:14 +02:00
|
|
|
bool "Build service TAs and libs"
|
2019-01-30 11:47:23 +01:00
|
|
|
default y
|
|
|
|
select BR2_TARGET_OPTEE_OS_CORE
|
|
|
|
help
|
2019-05-14 10:53:14 +02:00
|
|
|
This option installs the service trusted applications and
|
|
|
|
trusted shared libraries built from OP-TEE OS source tree.
|
|
|
|
These are installed in target /lib/optee_armtz directory
|
|
|
|
as other trusted applications. At runtime OP-TEE OS can
|
|
|
|
load these from this non-secure filesystem/directory into
|
|
|
|
the secure world for execution.
|
2019-01-30 11:47:23 +01:00
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_PLATFORM
|
|
|
|
string "Target platform (mandatory)"
|
|
|
|
help
|
|
|
|
Value for the mandated PLATFORM build directive provided to
|
|
|
|
OP-TEE OS.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPTEE_OS_PLATFORM_FLAVOR
|
|
|
|
string "Target platform flavor (optional)"
|
|
|
|
help
|
|
|
|
Value for the optional PLATFORM_FLAVOR build directive
|
|
|
|
provided to OP-TEE OS.
|
|
|
|
|
2022-12-13 12:11:54 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_CUSTOM_DTS_PATH
|
|
|
|
string "Device Tree Source file paths"
|
|
|
|
help
|
|
|
|
Space-separated list of paths to device tree source files
|
2023-02-06 14:18:31 +01:00
|
|
|
that will be copied to core/arch/arm/dts/ before starting
|
|
|
|
the build.
|
2022-12-13 12:11:54 +01:00
|
|
|
|
2023-02-06 14:18:31 +01:00
|
|
|
To use this device tree source file, the OP-TEE OS
|
|
|
|
configuration must refer to it with the
|
|
|
|
CFG_EMBED_DTB_SOURCE_FILE option and no platform flavor
|
|
|
|
needs to be specified.
|
2022-12-13 12:11:54 +01:00
|
|
|
|
2019-01-30 11:47:23 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_ADDITIONAL_VARIABLES
|
|
|
|
string "Additional build variables"
|
|
|
|
help
|
|
|
|
Additional parameters for the OP-TEE OS build
|
|
|
|
E.g. 'CFG_TEE_CORE_LOG_LEVEL=3 CFG_UNWIND=y'
|
|
|
|
|
2019-03-01 17:47:13 +01:00
|
|
|
config BR2_TARGET_OPTEE_OS_CORE_IMAGES
|
|
|
|
string "Binary boot images"
|
|
|
|
default "tee.bin tee-*_v2.bin"
|
|
|
|
help
|
|
|
|
Names of generated image files that are installed in the
|
|
|
|
output images/ directory.
|
|
|
|
|
2019-01-30 11:47:23 +01:00
|
|
|
endif # BR2_TARGET_OPTEE_OS
|