This packages the OpenEmbedded Image Creator (wic) as an installable
Python CLI using Hatch. It either consumes a BitBake-exported
environment file or folder (generated via bitbake -c rootfs_wicenv <image>) or will invoke BitBake directly (if available on the PATH).
- Ensure you have a BitBake-generated
<image>.envfile (fromrootfs_wicenv). - Install locally for development:
hatch shell
- Run the CLI:
hatch run wic --vars /path/to/<image>.env --help
- Ensure you have a folder with BitBake-generated
<image>.envfiles (fromrootfs_wicenv). - Install locally for development:
hatch shell
- Run the CLI:
hatch run wic --vars /path/to/envfiledir --help
- Ensure you have bitbake available in your PATH.
- Install locally for development:
hatch shell
- Run the CLI:
hatch run wic --help
src/wic/cli.py: CLI entrypoint (formerlyscripts/wic).src/wic/*: core engine, plugins, and helpers.src/bb/*: various bitbake helpers that were brought along and used in other parts of wic.src/oe/*: various oe-core helpers that were brought along and used in other parts of wic.
Please send all patches, comments, or questions to the yocto-patches mailing list (yocto-patches@lists.yoctoproject.org). See https://lists.yoctoproject.org/g/yocto-patches
When sending patches, please make sure the email subject line includes "[wic][PATCH]" and follow The Yocto Project community's patch submission guidelines.
GPL-2.0-only to match the original OpenEmbedded wic tooling.