From 0f3791f25f5039904765c33f1d8a812290caebb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= Date: Fri, 20 Dec 2024 16:15:31 +0100 Subject: [PATCH] boot/optee-os: add custom version option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add custom version option, to enable easily specifying an official OP-TEE version to use. This is similar to what is done in other packages, such as linux, uboot or arm-trusted-firmware. Signed-off-by: Vincent Stehlé Cc: Étienne Carrière Signed-off-by: Julien Olivain --- boot/optee-os/Config.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/boot/optee-os/Config.in b/boot/optee-os/Config.in index cc0044f00a..6c4afccc7a 100644 --- a/boot/optee-os/Config.in +++ b/boot/optee-os/Config.in @@ -25,6 +25,11 @@ config BR2_TARGET_OPTEE_OS_LATEST Use the latest release tag from the OP-TEE OS official Git repository. +config BR2_TARGET_OPTEE_OS_CUSTOM_VERSION + bool "Custom version" + help + This option allows to use a specific official version + config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL bool "Custom tarball" help @@ -43,6 +48,10 @@ config BR2_TARGET_OPTEE_OS_CUSTOM_GIT endchoice +config BR2_TARGET_OPTEE_OS_CUSTOM_VERSION_VALUE + string "OP-TEE version" + depends on BR2_TARGET_OPTEE_OS_CUSTOM_VERSION + if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL config BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL_LOCATION @@ -71,6 +80,8 @@ endif config BR2_TARGET_OPTEE_OS_VERSION string default "4.3.0" if BR2_TARGET_OPTEE_OS_LATEST + default BR2_TARGET_OPTEE_OS_CUSTOM_VERSION_VALUE \ + if BR2_TARGET_OPTEE_OS_CUSTOM_VERSION default "custom" if BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \ if BR2_TARGET_OPTEE_OS_CUSTOM_GIT