Skip to content

kernel-fit-image: Add support for multiple kernels and FIT configurations

Vahid Gharaee openembedded-core 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v36 patches 1 replySuperseded
  3. v24 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Rebased onto current OE-Core master.
- Adapted to the upstream removal of synthetic FIT_LOADABLE_* variable values.
- Updated FIT configuration tests to retrieve BitBake variable flags through get_bb_vars_flags().
- Preserved compatibility with existing Python-only FIT test fixtures.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6oe.fitimage: Support multiple kernel nodes and configuration selectionmeta/lib/oe/fitimage.py+12 -60 replies
2/6oe.fitimage: add metadata for multiple kernelsmeta/conf/image-fitimage.conf+55 -00 replies
3/6oe.selftest: Add tests for multi-kernel FIT configmeta/lib/oeqa/selftest/cases/fitimage.py+162 -10 replies
4/6oe.fitimage: Add custom configurations and harden multi-kernel handlingmeta/classes-recipe/kernel-fit-image.bbclass meta/lib/oe/fitimage.py meta/lib/oeqa/selftest/cases/fitimage.py+227 -240 replies
5/6oe.selftest: Improve FIT DTB alias validationmeta/lib/oeqa/selftest/cases/fitimage.py+55 -250 replies
6/6kernel-fit-image: preserve vendored DTB aliases for external overridesmeta-selftest/recipes-test/ext-dtb/test-dtbs-as-ext.bb meta/classes-recipe/kernel-fit-image.bbclass meta/lib/oeqa/selftest/cases/fitimage.py+113 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] kernel-fit-image: Add support for multiple kernels and FIT configurations

From: Vahid Gharaee <[email protected]>

These extends kernel-fit-image.bbclass
to support multiple kernel images in a single FIT image, with custom configurations selecting the required kernel and device tree. The main use case is to package different kernel variants, for example a standard and a real-time kernel, into one FIT image. Additional kernels can be provided by another recipe, through BitBake multiconfig, or as prebuilt files. The serie also adds validation for kernel and configuration references, improves handling of DTB aliases,
and extends the FIT selftests.

Changes since v3:
- Rebased onto current OE-Core master.
- Adapted to the upstream removal of synthetic FIT_LOADABLE_* variable values.
- Updated FIT configuration tests to retrieve BitBake variable flags through get_bb_vars_flags().
- Preserved compatibility with existing Python-only FIT test fixtures.

Validation:
- bitbake -p
- oe-selftest -r fitimage.FitImagePyTests (16 passed)
- oe-selftest -r fitimage.KernelFitImageRecipeTests.test_fit_image_multiple_kernels
- oe-selftest -r fitimage.KernelFitImageRecipeTests.test_fit_image_ext_dtb_vendored_override

All passed.

Vahid Gharaee (6):
oe.fitimage: Support multiple kernel nodes and configuration selection oe.fitimage: add metadata for multiple kernels oe.selftest: Add tests for multi-kernel FIT config oe.fitimage: Add custom configurations and harden multi-kernel
handling
oe.selftest: Improve FIT DTB alias validation
kernel-fit-image: preserve vendored DTB aliases for external overrides

 .../recipes-test/ext-dtb/test-dtbs-as-ext.bb  |  11 +
 meta/classes-recipe/kernel-fit-image.bbclass  | 136 ++++++-
 meta/conf/image-fitimage.conf                 |  55 +++
 meta/lib/oe/fitimage.py                       |  95 ++++-
 meta/lib/oeqa/selftest/cases/fitimage.py      | 359 ++++++++++++++++--
 5 files changed, 607 insertions(+), 49 deletions(-)

base-commit: 35d103be8b1a2346b7d0a7ff83745ad74d6817e2

Signature · 1 line
2.56.0