From 94a6cd1c2f40a43ddf517ea0894e351d52219604 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Wed, 14 Nov 2018 11:57:18 -0800 Subject: ref-manual: Updated image_types.bbclass description. The "image_types" class is now inherited mandatorily in image.bbclass through the variable IMGCLASSES. Users do not have to inherit it in their customized image type bbclass. They also do not have to put it in IMAGE_CLASSES. (From yocto-docs rev: 9d71cd281864478c76e40fa6e0b9cd0055f131c0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 35 +++++++++++++++++++------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to 'documentation') 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. -- cgit v1.2.3-54-g00ecf