swu-images: include compressed .ext4.gz rootfs image in SWU package

swupdate has the necessary logic to handle compressed images, so take advantage
of this to save space and reduce update package transfer times.

https://onedigi.atlassian.net/browse/DEL-7582

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2021-06-22 09:11:22 +02:00
parent d3a6920a07
commit a707e98775
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ software =
device = "##ROOTFS_DEV##"; device = "##ROOTFS_DEV##";
type ="raw"; type ="raw";
sha256 = "@##ROOTIMG_NAME##"; sha256 = "@##ROOTIMG_NAME##";
compressed = "zlib";
installed-directly = true; installed-directly = true;
} }
); );

View File

@ -22,7 +22,7 @@ DESCRIPTION = "${@oe.utils.ifelse(d.getVar('TRUSTFENCE_ENCRYPT_ROOTFS', True) ==
BOOTFS_EXT ?= ".boot.vfat" BOOTFS_EXT ?= ".boot.vfat"
BOOTFS_EXT_ccimx6ul ?= ".boot.ubifs" BOOTFS_EXT_ccimx6ul ?= ".boot.ubifs"
ROOTFS_EXT ?= ".ext4" ROOTFS_EXT ?= ".ext4.gz"
ROOTFS_EXT_ccimx6ul ?= ".ubifs" ROOTFS_EXT_ccimx6ul ?= ".ubifs"
BOOT_DEV_NAME ?= "/dev/mmcblk0p1" BOOT_DEV_NAME ?= "/dev/mmcblk0p1"