X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-netboot%2Fclasses%2Fnetboot.bbclass;h=65ca4a15da1f648dfe9945c60973128f4af24d3d;hb=6d0620bb017cc66c4866046b602e8d595fedb354;hp=3440914a5b5e410f7dc398e43a514f617cbe524c;hpb=be141be78efd87a910f03b83f7f89e5b2690d17f;p=AGL%2Fmeta-agl.git diff --git a/meta-netboot/classes/netboot.bbclass b/meta-netboot/classes/netboot.bbclass index 3440914a5..65ca4a15d 100644 --- a/meta-netboot/classes/netboot.bbclass +++ b/meta-netboot/classes/netboot.bbclass @@ -4,7 +4,7 @@ IMAGE_CLASSES += "${@'image_types_uboot' if (d.getVar("KERNEL_IMAGETYPE", True) == "uImage") else ''}" python () { - if (bb.utils.contains("IMAGE_FSTYPES","live",True,False,d)): + if (bb.utils.contains_any("IMAGE_FSTYPES",["live","vmdk","vmdk.xz"],True,False,d)): # typical case for Minnowboard Max d.setVar("INITRD_IMAGE","initramfs-netboot-image") d.setVar("INITRD_IMAGE_LIVE",d.getVar("INITRD_IMAGE",True)) @@ -17,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.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz.u-boot"); + d.setVar("NETBOOT_FSTYPES", "ext4.gz.u-boot"); else: # case for new u-boot images which don't require uImage format - d.setVar("INITRAMFS_FSTYPES_pn-initramfs-netboot-image", "ext4.gz"); + d.setVar("NETBOOT_FSTYPES", "ext4.gz"); }