Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boot/optee-os: add custom version option
@ 2024-12-20 15:15 Vincent Stehlé
  2025-01-08 21:51 ` Julien Olivain
  0 siblings, 1 reply; 4+ messages in thread
From: Vincent Stehlé @ 2024-12-20 15:15 UTC (permalink / raw)
  To: buildroot; +Cc: Vincent Stehlé, Étienne Carrière

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é <vincent.stehle@arm.com>
Cc: Étienne Carrière <etienne.carriere@foss.st.com>
---

Hi,

Note that, unlike what is done in arm-trusted-firmware, building with
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y and BR2_TARGET_OPTEE_OS_CUSTOM_VERSION=y,
and not supplying a hash will fail.
I think this is what we want, but do not hesitate to let me know if you
would prefer to make an exception (with BR_NO_CHECK_HASH_FOR) in all the
cases where we use a custom version, and I will respin the patch.

This was boot-tested with the following defconfigs (modified locally to use
OP-TEE 4.4.0):
- arm_fvp_ebbr
- qemu_aarch64_ebbr
- qemu_arm_ebbr
- qemu_arm_vexpress_tz

Also, this was build-tested with the following defconfigs (modified locally
to use OP-TEE 4.4.0):
- beagleboneai64
- beagleplay
- ti_am62ax_sk
- ti_am62px_sk
- ti_am62x_sk
- ti_am64x_sk

Finally, this was tested with tests.boot.test_optee_os.TestOptee (modified
locally to use OP-TEE 4.4.0).

(Note that to build OP-TEE 4.4.0 in the defconfigs and test,
BR2_TARGET_OPTEE_OS_NEEDS_PYTHON_CRYPTOGRAPHY=y is also necessary.)

Have a nice Christmas break,
Vincent.

 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
-- 
2.45.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-13 17:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 15:15 [Buildroot] [PATCH] boot/optee-os: add custom version option Vincent Stehlé
2025-01-08 21:51 ` Julien Olivain
2025-01-13  8:04   ` Etienne CARRIERE - foss
2025-01-13 17:37   ` Vincent Stehlé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox