wic: ship the tools it needs where it is packaged
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | wic-tools.inc: addmeta/ meta/ | +32 | 0 replies | |
| 2/4 | wic: add runtime dependencies on the tools it invokesmeta/ | +18 | 0 replies | |
| 3/4 | buildtools-extended-tarball: use nativesdk-wicmeta/ | +1 | 0 replies | |
| 4/4 | nativesdk-packagegroup-sdk-host: add wicmeta/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] wic: ship the tools it needs where it is packaged
wic shells out to a number of host-side tools (parted, mkdosfs, mcopy, the mkfs.* family, mdir, sfdisk, e2fsck, resize2fs, ...) but does not declare them as dependencies. For the bitbake do_image_wic task this is covered by the wic-tools recipe. Wherever else wic is installed as a package it gets none of them, and its offline lookup (wic ls/cp/write) falls back to the host PATH, so wic works only by chance depending on what the host has installed:
wic.WicError: Can't find executable 'mcopy'
This series makes wic carry its own tool dependencies wherever it is packaged, and then takes advantage of that to offer it in the SDK:
1. move the helper-tool list shared with wic-tools into wic-tools.inc
2. have nativesdk-wic RDEPEND that list, so wic is complete wherever it is packaged
3. simplify buildtools-extended-tarball to just nativesdk-wic
4. add nativesdk-wic to the standard SDK host packagegroup
The native and target wic variants are unaffected; the tools are added to the nativesdk variant only. cdrtools (mkisofs) is native-only with no nativesdk variant and so is not included.
Trevor Woerner (4):
wic-tools.inc: add
wic: add runtime dependencies on the tools it invokes buildtools-extended-tarball: use nativesdk-wic nativesdk-packagegroup-sdk-host: add wic
.../meta/buildtools-extended-tarball.bb | 4 +--- meta/recipes-core/meta/wic-tools.bb | 15 ++++++------ meta/recipes-core/meta/wic-tools.inc | 24 +++++++++++++++++++ .../nativesdk-packagegroup-sdk-host.bb | 1 + meta/recipes-support/wic/wic_0.3.0.bb | 18 ++++++++++++++ 5 files changed, 52 insertions(+), 10 deletions(-) create mode 100644 meta/recipes-core/meta/wic-tools.inc
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a