X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-netboot%2Fclasses%2Fnetboot.bbclass;h=363e6bcc9518b5fa0ee843f2d634d90a6a387e14;hb=5ad0538d20ca8f66af9f94cb63b10b303f6277cb;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..363e6bcc9 100644 --- a/meta-netboot/classes/netboot.bbclass +++ b/meta-netboot/classes/netboot.bbclass @@ -1,10 +1,7 @@ # Enable network bootable image and initrd/initramfs -# add image classes for uboot -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","wic.vmdk"],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 +14,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"); }