mbox series

[v2,0/6] kernel-fit-image: add FIT_LOADABLE_* variables to do_compile vardeps

Message ID 20261025181847.784113-1-adrian.freihofer@siemens.com
Headers show
Series kernel-fit-image: add FIT_LOADABLE_* variables to do_compile vardeps | expand

Message

AdrianF Oct. 25, 2026, 6:18 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

Changing a flag of a FIT loadable, e.g. FIT_LOADABLE_LOADADDRESS[atf],
did not rerun do_compile of the FIT image recipe and a stale FIT image
was reused. Add the FIT_LOADABLE_* variables to the do_compile vardeps.

The class also set FIT_LOADABLE_* to synthetic values which were only
there to make the flags visible to the selftests. To drop them,
get_bb_vars learns to read variable flags with the VAR[flag] syntax.
It now reads the values from a tinfoil datastore instead of parsing the
"bitbake -e" output, which is faster. get_bb_var uses the same code,
which also fixes its postconfig handling.

Adrian Freihofer (6):
  kernel-fit-image: add FIT_LOADABLE_* variables to do_compile vardeps
  oeqa/selftest/esdk: pass only the image name to get_bb_vars
  oeqa/utils/commands: use tinfoil in get_bb_vars
  oeqa/utils/commands: support variable flags in get_bb_vars
  oeqa/utils/commands: use the tinfoil helper in get_bb_var
  kernel-fit-image: drop the synthetic FIT_LOADABLE_* values

 meta/classes-recipe/kernel-fit-image.bbclass |  17 ++-
 meta/lib/oeqa/selftest/cases/esdk.py         |   4 +-
 meta/lib/oeqa/selftest/cases/fitimage.py     |  13 +-
 meta/lib/oeqa/utils/commands.py              | 141 ++++++++++---------
 4 files changed, 94 insertions(+), 81 deletions(-)