
SWUPDATE_IMAGES += "MLO"
SWUPDATE_IMAGES += "u-boot-beaglebone"
SWUPDATE_IMAGES_FSTYPES[MLO] = ""
SWUPDATE_IMAGES_FSTYPES[u-boot-beaglebone] = ".img"

COREOS_SWUPDATE_EXTENDS_FOR:append = "beaglebone"

def coreos_swupdate_extends_images_for_beaglebone(d,s):
    mlo = {
        "filename" : "MLO",
        "installed-directly" : "true",
        "device" : "/dev/disk/by-partlabel/mlo",
        "type" : "raw",
        "sha256" : swupdate_get_sha256(d, s, "MLO"),
    }

    uboot = {
        "filename" : "u-boot-beaglebone.img",
        "installed-directly" : "true",
        "device" : "/dev/disk/by-partlabel/uboot",
        "type" : "raw",
        "sha256" : swupdate_get_sha256(d, s, "u-boot-beaglebone.img"),
    }

    return [mlo, uboot]
