Hi Stefano, all,
I have a Yocto/OpenEmbedded setup with a custom image recipe
(
my-image.bb) and swupdate image recipe (
my-image-swu.bb):
### file:
my-image-swu.bb
SUMMARY = "Compound swupdate image (*.swu) for my device."
LICENSE = "MIT"
SRC_URI = "file://sw-description"
inherit swupdate
IMAGE_DEPENDS = "my-image"
SWUPDATE_IMAGES = "my-image"
SWUPDATE_IMAGES_FSTYPES[my-image] = ".ext4"
This works just fine the first time I perform a build. But on the next
run, the .swu file is not rebuilt, even if the image it depends upon
changes / is rebuilt.
$ bitbake my-image-swu
...
NOTE: recipe my-image-1.0-r0: task do_rootfs: Started
NOTE: recipe my-image-1.0-r0: task do_rootfs: Succeeded
NOTE: Running noexec task 3839 of 3843 (ID: 12,
/home/bfo/fsl-community-bsp/meta-custom/recipes-images/images/
my-image-swu.bb,
do_build)
NOTE: Running task 3840 of 3843 (ID: 13,
/home/bfo/fsl-community-bsp/meta-custom/recipes-images/images/
my-image-swu.bb,
do_rm_work)
NOTE: Running noexec task 3841 of 3843 (ID: 48,
/home/bfo/fsl-community-bsp/meta-custom/recipes-images/images/
my-image.bb,
do_build)
NOTE: Running task 3842 of 3843 (ID: 49,
/home/bfo/fsl-community-bsp/meta-custom/recipes-images/images/
my-image.bb,
do_rm_work)
Above I can see that "bitbake my-image-swu" performs the "do_rootfs"
task on my-image, as expected. But still the .swu image isn't rebuilt.
Why? What's the proper way to rebuilt .swu file when the depending
image changes? For now I'm using "bitbake -c cleansstate my-image-swu"
to force rebuild, but that's not very elegant.
Best regards,
Bjørn Forsman