diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index a6e5ed6d4d..9fef0fc5f7 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -1314,28 +1314,35 @@ <filename>image_types.bbclass</filename> - The image_types class defines all of - the standard image output types that you can enable through the + The image_types class defines all of the + standard image output types that you can enable through the IMAGE_FSTYPES variable. - You can use this class as a reference on how to add support for custom - image output types. + You can use this class as a reference on how to add support for + custom image output types. - By default, this class is enabled through the - IMAGE_CLASSES - variable in - image.bbclass. - If you define your own image types using a custom BitBake class and - then use IMAGE_CLASSES to enable it, the custom - class must either inherit image_types or - image_types must also appear in - IMAGE_CLASSES. + By default, the + image + class automatically enables the image_types class. + The image class uses the + IMGCLASSES variable as follows: + + IMGCLASSES = "rootfs_${IMAGE_PKGTYPE} image_types ${IMAGE_CLASSES}" + IMGCLASSES += "${@['populate_sdk_base', 'populate_sdk_ext']['linux' in d.getVar("SDK_OS")]}" + IMGCLASSES += "${@bb.utils.contains_any('IMAGE_FSTYPES', 'live iso hddimg', 'image-live', '', d)}" + IMGCLASSES += "${@bb.utils.contains('IMAGE_FSTYPES', 'container', 'image-container', '', d)}" + IMGCLASSES += "image_types_wic" + IMGCLASSES += "rootfs-postcommands" + IMGCLASSES += "image-postinst-intercepts" + inherit ${IMGCLASSES} + - This class also handles conversion and compression of images. + The image_types class also handles conversion and + compression of images. To build a VMware VMDK image, you need to add "wic.vmdk" to IMAGE_FSTYPES.