From: Louis Rannou Subject: [PATCH 0/2] wic: extra-partitions: new variable to be combined with sourceparams Date: Wed, 07 Jan 2026 11:40:49 +0100 Message-Id: <20260107-extrafiles-v1-0-a4ddd07df231@non.se.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADE4XmkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDQwNz3dSKkqLEtMyc1GLdxBTLRCNTUyPLJCMDJaCGgqLUtMwKsGHRsbW 1APiCmy1cAAAA To: openembedded-core@lists.openembedded.org Cc: Louis Rannou , pierre-loup.gosse@smile.fr X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1767782471; l=1626; i=louis.rannou@non.se.com; s=20250630; h=from:subject:message-id; bh=b/q85BkYIhY/IQQDm8i7EPkR7Agq6t1mY39ZaaBatj8=; b=MDIhPX3BpPnJCozd7SWQhW+cDnvNwgVULFAjqI5FWBRVASB0hI3zSJRnGSSeNKIe8nSHiLgqs y+BZpUByw4CCjBGYMu2JJzyg8PHhsxhrWvmQi4JCnib8JDxubufAe2m X-Developer-Key: i=louis.rannou@non.se.com; a=ed25519; pk=WWYN5/DFKqyCKdv6oTYNuq0gROqwZVfNfw2OMI3tUlc= X-Endpoint-Received: by B4 Relay for louis.rannou@non.se.com/20250630 with auth_id=446 List-Id: B4 Relay Submissions 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. The first commit increases the tests. It now tests several files can be included and that the file system type can be specified. It also simplifies the 'wic ls' command by removing unneeded pipes. The second commit allows the new suffix _sourceparams_foo 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_sourceparams_foo = "bar.conf" and the .wks line have line: part --source extra_partition --sourceparams "name=foo" Signed-off-by: Louis Rannou --- Louis Rannou (2): oeqa/selftest: wic: improve extra-partition plugin tests wic: extra-partition: introduce variable matching sourceparams meta/lib/oeqa/selftest/cases/wic.py | 55 ++++++++++++++++------- scripts/lib/wic/plugins/source/extra_partition.py | 24 +++++++--- 2 files changed, 57 insertions(+), 22 deletions(-) --- base-commit: 0ed4776533145c901611d7f4f942490e33481335 change-id: 20260107-extrafiles-ad9a25529b20 Best regards, -- Louis Rannou