]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic: extra-partition: introduce variable matching sourceparams
authorLouis Rannou <louis.rannou@non.se.com>
Mon, 12 Jan 2026 08:29:56 +0000 (09:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jan 2026 16:50:56 +0000 (16:50 +0000)
commit6fca7043368524b2ff11ea248bb3eb2bb177702f
tree80238f7a3d3be9292db6ac1e3569505bf29c6b61
parentcc6845a4c791a074a34e7be07cf2e2a6e2fbb23f
wic: extra-partition: introduce variable matching sourceparams

The current extra_partition plugin uses predictable variable names (the
configuration must predict the image partition label or uuid). This has two
inconveniences:

- an extra partition that has a specific label (or uuid) is doomed with the
  associated variable. The partition cannot be configured unless the label
  (or uuid) is changed.
- two partitions with same label from distincts .wks cannot have different
  content.

This allows the new suffix _name_%s to be appended to
IMAGE_EXTRA_PARTITION_FILES. This variable will be preferred whenever the
.wks specifies a name in the --sourceparams option.

For example:
  an image may define:
    IMAGE_EXTRA_PARTITION_FILES_name_foo = "bar.conf"
  and the .wks line have line:
    part --source extra_partition --sourceparams "name=foo"

Signed-off-by: Louis Rannou <louis.rannou@non.se.com>
Reviewed-by: Pierre-Loup GOSSE <pierre-loup.gosse@smile.fr>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/wic.py
scripts/lib/wic/plugins/source/extra_partition.py