+++ /dev/null
-software = {
- version = "@@DISTRO_VERSION@@";
- description = "Firmware update description for @@MACHINE@@";
-
- @@MACHINE@@ = {
- hardware-compatibility: [ "revA" ];
- stable: {
- bootenv-common: (
- {
- name = "bootcount";
- value = "0";
- },
- {
- name = "upgrade_available";
- value = "1";
- },
- );
-
- rootfsA: {
- images: (
- {
- filename = "@@IMAGE_DEPENDS@@-@@MACHINE@@@@SWUPDATE_IMAGES_FSTYPES[@@IMAGE_DEPENDS@@]@@";
- type = "archive";
- compressed = "zlib";
- preserve-attributes = true;
- sha256 = "$swupdate_get_sha256(@@IMAGE_DEPENDS@@-@@MACHINE@@@@SWUPDATE_IMAGES_FSTYPES[@@IMAGE_DEPENDS@@]@@)";
- path = "/"; /* Destination path when decompressing. */
- filesystem = "ext4";
- device = "@@ROOT_PARENT_DEV@@@@ROOT_PART_PREFIX@@@@ROOT_PART_A_ID@@";
- }
- );
- scripts: (
- {
- filename = "swupdate-ab.sh";
- type = "shellscript";
- data = "@@ROOT_PART_PREFIX@@@@ROOT_PART_A_ID@@"; /* Destination partition ID */
- sha256 = "$swupdate_get_sha256(swupdate-ab.sh)";
- }
- );
- bootenv: (
- {
- ref = "#./../bootenv-common";
- },
- {
- name = "@@UBOOT_PART_VAR@@";
- value = "@@ROOT_PART_A_ID@@";
- }
- );
- };
- rootfsB: {
- images: (
- {
- filename = "@@IMAGE_DEPENDS@@-@@MACHINE@@@@SWUPDATE_IMAGES_FSTYPES[@@IMAGE_DEPENDS@@]@@";
- type = "archive";
- compressed = "zlib";
- preserve-attributes = true;
- sha256 = "$swupdate_get_sha256(@@IMAGE_DEPENDS@@-@@MACHINE@@@@SWUPDATE_IMAGES_FSTYPES[@@IMAGE_DEPENDS@@]@@)";
- path = "/"; /* Destination path when decompressing. */
- filesystem = "ext4";
- device = "@@ROOT_PARENT_DEV@@@@ROOT_PART_PREFIX@@@@ROOT_PART_B_ID@@";
- }
- );
- scripts: (
- {
- filename = "swupdate-ab.sh";
- type = "shellscript";
- data = "@@ROOT_PART_PREFIX@@@@ROOT_PART_B_ID@@"; /* Destination partition ID */
- sha256 = "$swupdate_get_sha256(swupdate-ab.sh)";
- }
- );
- bootenv: (
- {
- ref = "#./../bootenv-common";
- },
- {
- name = "@@UBOOT_PART_VAR@@";
- value = "@@ROOT_PART_B_ID@@";
- }
- );
- };
- };
- };
-}