meta-openembedded/meta-oe/classes
AshishKumar Mishra f5246b7df4
meta-oe: image: optionally remove RAW image after sparse image creation
When creating sparse images, the RAW image is no longer needed in
some workflows such as Android and CI pipelines. These RAW images
can be multi-GB artifacts and consume significant disk space.

This change introduces a configuration option
`DELETE_RAWIMAGE_AFTER_SPARSE_CMD` which, when set to "1",
removes the RAW image after sparse image generation.

This reduces disk usage in builds where sparse images are the
final deliverables and RAW images are not required.

Default behavior is unchanged: RAW images are kept unless the
variable is explicitly enabled:

    DELETE_RAWIMAGE_AFTER_SPARSE_CMD = "1"   # Delete RAW image
    DELETE_RAWIMAGE_AFTER_SPARSE_CMD = "0"   # Default behavior

Signed-off-by: AshishKumar Mishra <emailaddress.ashish@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-15 09:55:16 -07:00
..
breakpad.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
capnproto.bbclass capnproto: remove binaries from target-build, add bbclass 2025-02-03 11:25:22 -08:00
check-version-mismatch.bbclass check-version-mismatch.bbclass: use oe.qemu and add QEMU_OPTIONS settings 2025-05-29 22:28:02 -07:00
discoverable-disk-image.bbclass classes: add discoverable disk image class 2025-06-25 06:44:54 -07:00
fitimage.bbclass meta-openembedded/all: adapt to UNPACKDIR changes 2025-06-25 06:44:52 -07:00
gitpkgv.bbclass gitpkgv.bbclass: inspect repository in UNPACKDIR 2025-08-18 07:50:01 -07:00
gitver.bbclass gitver: Pass git directory argument to gitrev_run 2019-06-15 17:17:09 -07:00
image_types_sparse.bbclass meta-oe: image: optionally remove RAW image after sparse image creation 2025-09-15 09:55:16 -07:00
image_types_verity.bbclass image_types_verity.bbclass: remove breaking unit suffix from machine-readable verity parameters 2025-09-02 08:57:41 -07:00
itstool.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
machine_kernel_pr.bbclass remove True option to getVar calls 2016-12-02 09:16:17 +01:00
panel-mipi-dbi.bbclass panel-mipi-dbi.bbclass: initial addition of the firmware blob class 2024-11-01 06:43:16 -07:00
scancode.bbclass meta-oe: remove True option to getVar calls (again) 2019-01-13 10:28:01 -08:00
signing.bbclass signing.bbclass: create env with 0x600 2025-08-20 07:35:07 -07:00
socorro-syms.bbclass Convert to new override syntax 2021-08-03 10:21:25 -07:00
sysext-image.bbclass classes: add a systemd-sysext image class 2025-06-25 06:44:55 -07:00