diff options
author | Francesco Valla <francesco@valla.it> | 2025-03-16 21:28:48 +0100 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-03-17 13:52:22 -0500 |
commit | e151a0a302db7387ac20d4be162d506b80c630b5 (patch) | |
tree | 7cb95796129e70b1011c3da8442b18861f4fe129 | |
parent | d7e6c3d9e21c0e47b3c890e47affe73946e1beea (diff) | |
download | meta-ti-e151a0a302db7387ac20d4be162d506b80c630b5.tar.gz |
optee-os: drop custom handling of embedded TAscicd.master.202503181422
The meta-arm layer, which is the provider of the base recipe for
optee-os, added [1] a separate optee-os-ta package for the embedded TAs
that are compiled as part of the OPTEE OS build process. However, the
TI overrides for optee-os include the embedded TAs inside the base
package, leaving the optee-os-ta package empty (and thus not
installable).
Align to the meta-arm behaviour and simply add a runtime dependency on
optee-os-ta for optee-os. While keeping backward compatibility, this
allows to install only the embedded TAs - reducing the required disk
space - on platforms on which the OPTEE OS is loaded from an external
boot image rather than being fetched from the root filesystem, like the
K3 SoCs.
[1] https://patchwork.yoctoproject.org/project/arm/patch/20230630112340.3314395-1-r.czerwinski@pengutronix.de/
Signed-off-by: Francesco Valla <francesco@valla.it>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc index 5756f3ff..ae6cca74 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc | |||
@@ -47,10 +47,6 @@ do_install:append() { | |||
47 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true | 47 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true |
48 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true | 48 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true |
49 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true | 49 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true |
50 | |||
51 | # Install embedded TAs | ||
52 | mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/ | ||
53 | install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/ | ||
54 | } | 50 | } |
55 | 51 | ||
56 | optee_deploy_legacyhs() { | 52 | optee_deploy_legacyhs() { |
@@ -73,7 +69,8 @@ do_deploy:append:k3() { | |||
73 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ | 69 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ |
74 | } | 70 | } |
75 | 71 | ||
76 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/" | 72 | # Make the OS depend on embedded TAs |
73 | RDEPENDS:${PN} += "${PN}-ta" | ||
77 | 74 | ||
78 | # This is needed for bl32.elf | 75 | # This is needed for bl32.elf |
79 | INSANE_SKIP:${PN}:append:k3 = " textrel" | 76 | INSANE_SKIP:${PN}:append:k3 = " textrel" |