]> 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>
Mon, 9 Feb 2026 17:46:58 +0000 (17:46 +0000)
commite1526079d205dac6e3cff6d8e5cb37f68b631009
tree09c8ba33b42f0797d1f36c6e0991839013f3ec7a
parentfba82acf55e90065d974e2f90b29e97b7f825281
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: Ross Burton <ross.burton@arm.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