diff mbox series

[kirkstone] optee: make bbappends version-specific

Message ID 20221107191752.829183-1-denis@denix.org
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [kirkstone] optee: make bbappends version-specific | expand

Commit Message

Denys Dmytriyenko Nov. 7, 2022, 7:17 p.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

Kirkstone branch of meta-arm comes with 2 versions of optee-os and
optee-client - 3.14 and 3.16. They have different dependencies and
slightly different build flows.

In our bbappends we bump SRCREV to latest version for newer platform
support and also update PV to indicate the correct version. While
bbappends are expected to be applied against newer 3.16 version of the
recipes, they use wildcard versioning and are not version-specific.

That results in bbappends applied to both versions of the recipes and
PV set to be the same, while the content is different. At this point
bitbake can pick up any version of the base recipe and if it gets
3.14 to apply the bbappend, the build fails due to that version being
too old and have different dependencies and build flows.

Making bbappends version-specific avoids the problem. Alternatively,
a whole recipe of the required newer version could be added, instead
of using bbappends.

Also, this is specific to Kirkstone, where meta-arm provides two
versions of optee - 3.14 and 3.16. In Lagdale and master only a
single 3.18 version of optee is provided.

Another hacky approach would be to not bump PV and let it be set by
the base recipe. That would avoid the build issue and keep bbappends
version-agnostic across branches, but result in incorrect versioning
of the binary packages, which might be confusing.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 .../{optee-client_%.bbappend => optee-client_3.16%.bbappend}      | 0
 .../optee/{optee-os_%.bbappend => optee-os_3.16%.bbappend}        | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename meta-ti-bsp/recipes-security/optee/{optee-client_%.bbappend => optee-client_3.16%.bbappend} (100%)
 rename meta-ti-bsp/recipes-security/optee/{optee-os_%.bbappend => optee-os_3.16%.bbappend} (100%)
diff mbox series

Patch

diff --git a/meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend b/meta-ti-bsp/recipes-security/optee/optee-client_3.16%.bbappend
similarity index 100%
rename from meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend
rename to meta-ti-bsp/recipes-security/optee/optee-client_3.16%.bbappend
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend b/meta-ti-bsp/recipes-security/optee/optee-os_3.16%.bbappend
similarity index 100%
rename from meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend
rename to meta-ti-bsp/recipes-security/optee/optee-os_3.16%.bbappend