swupdate.bbclass doesn't re-build .swu image after change

126 views
Skip to first unread message

Bjørn Forsman

unread,
Nov 24, 2015, 5:47:46 PM11/24/15
to swupdate
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

Bjørn Forsman

unread,
Dec 1, 2015, 3:31:22 AM12/1/15
to swupdate
On 24 November 2015 at 23:47, Bjørn Forsman <bjorn....@gmail.com> wrote:
> 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.
[...]
> 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.

Ping. Any thoughts on this?

Best regards,
Bjørn Forsman
Reply all
Reply to author
Forward
0 new messages