meta-digi-dey: swu-images: enable upgrade available feature only for CCIMX6

The CCIMX6 platform is the only one that will keep using the 'bootcount' value stored in the environment.
For this reason, that is the only platform requiring the 'upgrade_available' flag to be set after a
firmware update. For the rest of the platforms, remove it.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
David Escalona 2023-08-10 17:06:18 +02:00
parent 981c5e44bb
commit fd6d797eae
4 changed files with 8 additions and 12 deletions

View File

@ -15,10 +15,6 @@ software =
}
);
uboot: (
{
name = "upgrade_available";
value = "1";
},
{
name = "rootfstype"
value = "@@SWUPDATE_ROOTFS_TYPE@@"
@ -36,10 +32,6 @@ software =
}
);
uboot: (
{
name = "upgrade_available";
value = "1";
},
{
name = "rootfstype"
value = "@@SWUPDATE_ROOTFS_TYPE@@"

View File

@ -18,7 +18,7 @@ software =
uboot: (
{
name = "upgrade_available";
value = "1";
value = "@@UPGRADE_AVAILABLE@@";
}
);
}
@ -36,7 +36,7 @@ software =
uboot: (
{
name = "upgrade_available";
value = "1";
value = "@@UPGRADE_AVAILABLE@@";
}
);
}

View File

@ -19,7 +19,7 @@ software =
uboot: (
{
name = "upgrade_available";
value = "1";
value = "@@UPGRADE_AVAILABLE@@";
}
);
}
@ -38,7 +38,7 @@ software =
uboot: (
{
name = "upgrade_available";
value = "1";
value = "@@UPGRADE_AVAILABLE@@";
}
);
}

View File

@ -67,6 +67,10 @@ python do_swuimage:prepend() {
shutil.copyfile(updatescript, os.path.join(imgdeploydir, os.path.basename(updatescript)))
}
# Upgrade available.
UPGRADE_AVAILABLE = ""
UPGRADE_AVAILABLE:ccimx6 = "1"
# Create and fill 'sw-description' file.
fill_description() {
if [ "${SWUPDATE_UBOOTIMG}" = "true" ]; then