software =
{
    version = "0.1.0";

    hardware-compatibility: [ "1.0"];
    stable:
    {
        normal: {
            images: (
            {
                filename = "splloader.bin";
                device = "/dev/splloader";
                type = "raw";
                sha256 = "@splloader.bin";
            },
            {
                filename = "boot.img";
                device = "/dev/boot";
                type = "raw";
                sha256 = "@boot.img";
            },
            {
                filename = "dtbo.img";
                device = "/dev/dtbo";
                type = "raw";
                sha256 = "@dtbo.img";
            },
            {
                filename = "dtb.img";
                device = "/dev/dtb";
                type = "raw";
                sha256 = "@dtb.img";
            },
            {
                filename = "system.img";
                device = "/dev/system";
                type = "raw";
                sha256 = "@system.img";
            },
            {
                filename = "teecfg.bin";
                device = "/dev/teecfg";
                type = "raw";
                sha256 = "@teecfg.bin";
            },
            {
                filename = "trustos.bin";
                device = "/dev/trustos";
                type = "raw";
                sha256 = "@trustos.bin";
            },
            {
                filename = "sml.bin";
                device = "/dev/sml";
                type = "raw";
                sha256 = "@sml.bin";
            },
            {
                filename = "uboot.bin";
                device = "/dev/uboot";
                type = "raw";
                sha256 = "@uboot.bin";
            },
            {
                filename = "nr_modem.dat";
                device = "/dev/nr_modem";
                type = "raw";
                sha256 = "@nr_modem.dat";
            },
            {
                filename = "nr_deltanv.bin";
                device = "/dev/nr_deltanv";
                type = "raw";
                sha256 = "@nr_deltanv.bin";
            },
            {
                filename = "pm_sys.bin";
                device = "/dev/pm_sys";
                type = "raw";
                sha256 = "@pm_sys.bin";
            },
            {
                filename = "l_agdsp.bin";
                device = "/dev/l_agdsp";
                type = "raw";
                sha256 = "@l_agdsp.bin";
            },
            {
                filename = "nr_phy.bin";
                device = "/dev/nr_phy";
                type = "raw";
                sha256 = "@nr_phy.bin";
            },
            {
                filename = "ch_sys.bin";
                device = "/dev/ch_sys";
                type = "raw";
                sha256 = "@ch_sys.bin";
            },
            {
                filename = "gnssmodem.bin";
                device = "/dev/gnssmodem";
                type = "raw";
                sha256 = "@gnssmodem.bin";
            },
            {
                filename = "wcnmodem.bin";
                device = "/dev/wcnmodem";
                type = "raw";
                sha256 = "@wcnmodem.bin";
            }
            );
            bootenv: (
            {
                name = "update_recovery";
                value = "1";
            },
            {
                name = "ab_support";
                value = "1";
            }
            );
            files: (
            {
                filename = "nvmerge.cfg";
                path = "/mnt/data/recovery/tmp/nvmerge.cfg";
                properties = {create-destination = "true";}
                sha256 = "@nvmerge.cfg";
            },
            {
                filename = "nr_fixnv1.bin";
                path = "/mnt/data/recovery/tmp/nr_fixnv1.bin";
                properties = {create-destination = "true";}
                sha256 = "@nr_fixnv1.bin";
            }
            );
        }
        preextact: {
            files: (
            {
                filename = "swupdateext";
                path = "/mnt/data/recovery/tmp/swupdateext";
                properties = {create-destination = "true";}
                sha256 = "@swupdateext";
            },
            {
                filename = "libbspatch.so";
                path = "/mnt/data/recovery/tmp/libbspatch.so";
                properties = {create-destination = "true";}
                sha256 = "@libbspatch.so";
            },
            {
                filename = "libotaarith.so";
                path = "/mnt/data/recovery/tmp/libotaarith.so";
                properties = {create-destination = "true";}
                sha256 = "@libotaarith.so";
            },
            {
                filename = "update.sh";
                path = "/mnt/data/recovery/tmp/update.sh";
                properties = {create-destination = "true";}
                sha256 = "@update.sh";
            }
            );
        }
        recovery: {
            images: (
            {
                filename = "recovery.img";
                device = "/dev/recovery";
                type = "raw";
                sha256 = "@recovery.img";
            },
            {
                filename = "recovery_system.img";
                device = "/dev/recovery_system";
                type = "raw";
                sha256 = "@recovery_system.img";
            },
            {
                filename = "recovery_dtb.img";
                device = "/dev/recovery_dtb";
                type = "raw";
                sha256 = "@recovery_dtb.img";
            }
            );
        }

    }
}
