X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-netboot%2Fclasses%2Fnetboot.bbclass;h=a18d64f5b1b27803e9eee84163e99435069e3e93;hb=1c3c06842ac1b9c089d0a08e91c60f44e4844fac;hp=65ca4a15da1f648dfe9945c60973128f4af24d3d;hpb=6d0620bb017cc66c4866046b602e8d595fedb354;p=AGL%2Fmeta-agl.git diff --git a/meta-netboot/classes/netboot.bbclass b/meta-netboot/classes/netboot.bbclass index 65ca4a15d..a18d64f5b 100644 --- a/meta-netboot/classes/netboot.bbclass +++ b/meta-netboot/classes/netboot.bbclass @@ -1,25 +1,27 @@ # 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 ''}" +OVERRIDES .= ":netboot" +# add 512MB of extra space in ext4 output image +IMAGE_ROOTFS_EXTRA_SPACE = "524288" +NETBOOT_ENABLED ??= "1" python () { - 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)) - d.setVar("INITRD_LIVE","%s/%s-%s.ext4.gz" % ( - d.getVar("DEPLOY_DIR_IMAGE",True), - d.getVar("INITRD_IMAGE_LIVE",True), - d.getVar("MACHINE",True) - )) - else: - 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("NETBOOT_FSTYPES", "ext4.gz.u-boot"); - else: - # case for new u-boot images which don't require uImage format - d.setVar("NETBOOT_FSTYPES", "ext4.gz"); + if (bb.utils.contains("IMAGE_FSTYPES","live",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)) + d.setVar("INITRD_LIVE","%s/%s-%s.ext4.gz" % ( + d.getVar("DEPLOY_DIR_IMAGE",True), + d.getVar("INITRD_IMAGE_LIVE",True), + d.getVar("MACHINE",True) + )) + else: + 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("NETBOOT_FSTYPES", "ext4.gz.u-boot"); + else: + # case for new u-boot images which don't require uImage format + d.setVar("NETBOOT_FSTYPES", "ext4.gz"); }