Skip to content

Commit

Permalink
genimage.bbclass: Do not generate SSTATE artifacts
Browse files Browse the repository at this point in the history
The artifacts created would be quite large and keeping multiple of them
will consume a notable amount of disk space while the expected speed-up
is really minimal.
(For the same reasons, the image class does not generate sstate
artifacts).

Having SSTATE artifacts enabled here before also led to
unexpected/unwanted behavior where a rootfs image recipe was rebuild
and the binary output (file system image) changed but did not make it
into the final genimage-generated disk image.
This becomes a major problem, e.g. in the context of verified boot.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
  • Loading branch information
ejoerns authored and Emantor committed Jun 7, 2024
1 parent c8bc1e0 commit d0a6b38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes-recipe/genimage.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ fakeroot do_genimage () {
}
do_genimage[depends] += "virtual/fakeroot-native:do_populate_sysroot"
do_genimage[prefuncs] += "do_genimage_preprocess"
SSTATE_SKIP_CREATION:task-genimage = '1'

addtask genimage after do_configure

Expand Down

0 comments on commit d0a6b38

Please sign in to comment.