swu-images: create a common sw-description file.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
This commit is contained in:
Mike Engel 2021-06-07 19:07:30 +02:00
parent da766b29d5
commit 51babaa55b
2 changed files with 40 additions and 36 deletions

View File

@ -1,20 +0,0 @@
software =
{
version = "##SW_VERSION##";
description = "##DESCRIPTION##";
images: (
{
filename = "##BOOTIMG_NAME##";
volume = "##BOOT_DEV##";
type = "ubivol";
sha256 = "@##BOOTIMG_NAME##";
},
{
filename = "##ROOTIMG_NAME##";
volume = "##ROOTFS_DEV##";
type = "ubivol";
sha256 = "@##ROOTIMG_NAME##";
}
);
}

View File

@ -3,21 +3,45 @@ software =
version = "##SW_VERSION##"; version = "##SW_VERSION##";
description = "##DESCRIPTION##"; description = "##DESCRIPTION##";
images: ( mmc = {
{ platform: {
filename = "##BOOTIMG_NAME##"; images: (
device = "##BOOT_DEV##"; {
type = "raw"; filename = "##BOOTIMG_NAME##";
sha256 = "@##BOOTIMG_NAME##"; device = "##BOOT_DEV##";
installed-directly = true; type = "raw";
}, sha256 = "@##BOOTIMG_NAME##";
{ installed-directly = true;
filename = "##ROOTIMG_NAME##"; },
device = "##ROOTFS_DEV##"; {
type = "raw"; filename = "##ROOTIMG_NAME##";
sha256 = "@##ROOTIMG_NAME##"; device = "##ROOTFS_DEV##";
installed-directly = true; type ="raw";
sha256 = "@##ROOTIMG_NAME##";
installed-directly = true;
}
);
} }
); ##PREINSTALL_SCRIPT##
##PREINSTALL_SCRIPT## };
mtd = {
platform: {
images: (
{
filename = "##BOOTIMG_NAME##";
volume = "##BOOT_DEV##";
type = "ubivol";
sha256 = "@##BOOTIMG_NAME##";
installed-directly = true;
},
{
filename = "##ROOTIMG_NAME##";
volume = "##ROOTFS_DEV##";
type ="ubivol";
sha256 = "@##ROOTIMG_NAME##";
installed-directly = true;
}
);
};
};
} }