Enforce same IMAGE_FSTYPES across all boards for AGL
[AGL/meta-agl.git] / meta-netboot / classes / netboot.bbclass
index 753ef79..3440914 100644 (file)
@@ -4,8 +4,6 @@
 IMAGE_CLASSES += "${@'image_types_uboot' if (d.getVar("KERNEL_IMAGETYPE", True) == "uImage") else ''}"
 
 python () {
-       d.appendVar("IMAGE_FSTYPES"," ext4")
-
        if (bb.utils.contains("IMAGE_FSTYPES","live",True,False,d)):
                # typical case for Minnowboard Max
                d.setVar("INITRD_IMAGE","initramfs-netboot-image")
@@ -19,9 +17,9 @@ python () {
                d.setVar("INITRAMFS_IMAGE","initramfs-netboot-image")
                if (d.getVar("KERNEL_IMAGETYPE",True) == "uImage"):
                        # case for "old" u-boot images, like Porter board
-                       d.appendVar("INITRAMFS_FSTYPES"," ext4.gz.u-boot");
+                       d.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz.u-boot");
                else:
                        # case for new u-boot images which don't require uImage format 
-                       d.appendVar("INITRAMFS_FSTYPES"," ext4.gz");
+                       d.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz");
 }