* [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
* Re: [Buildroot] [PATCH] boot/optee-os: add custom version option
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é
0 siblings, 2 replies; 4+ messages in thread
From: Julien Olivain @ 2025-01-08 21:51 UTC (permalink / raw)
To: Vincent Stehlé; +Cc: buildroot, Étienne Carrière
Hi Vincent, Étienne,
On 20/12/2024 16:15, Vincent Stehlé wrote:
> 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>
I applied this patch to master, thanks.
Do you think the same logic should also be added to the optee-client,
optee-examples and optee-test packages?
I currently believe so.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] boot/optee-os: add custom version option
2025-01-08 21:51 ` Julien Olivain
@ 2025-01-13 8:04 ` Etienne CARRIERE - foss
2025-01-13 17:37 ` Vincent Stehlé
1 sibling, 0 replies; 4+ messages in thread
From: Etienne CARRIERE - foss @ 2025-01-13 8:04 UTC (permalink / raw)
To: Julien Olivain, Vincent Stehlé; +Cc: buildroot@buildroot.org
Hello Julien, Vincent,
On Wednesday, January 8, 2025, Julien Olivain wrote:
> Hi Vincent, Étienne,
>
> On 20/12/2024 16:15, Vincent Stehlé wrote:
> > 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>
>
> I applied this patch to master, thanks.
>
> Do you think the same logic should also be added to the optee-client,
> optee-examples and optee-test packages?
>
>
> I currently believe so.
I do also since O-TEE test source tree should be synced with OP-TEE OS source tree.
Best regards,
Etienne
>
> Best regards,
>
> Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] boot/optee-os: add custom version option
2025-01-08 21:51 ` Julien Olivain
2025-01-13 8:04 ` Etienne CARRIERE - foss
@ 2025-01-13 17:37 ` Vincent Stehlé
1 sibling, 0 replies; 4+ messages in thread
From: Vincent Stehlé @ 2025-01-13 17:37 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot, Étienne Carrière
On Wed, Jan 08, 2025 at 10:51:36PM +0100, Julien Olivain wrote:
> Hi Vincent, Étienne,
>
> On 20/12/2024 16:15, Vincent Stehlé wrote:
> > 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>
>
> I applied this patch to master, thanks.
Hi Julien,
Thanks for handling this patch.
> Do you think the same logic should also be added to the optee-client,
> optee-examples and optee-test packages?
>
> I currently believe so.
Good idea!
I think we could even have an additional option in those packages to specify
"same version as optee-os", similarly to BR2_KERNEL_HEADERS_AS_KERNEL.
Best regards,
Vincent.
>
> Best regards,
>
> Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [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