diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index fc7d64d7e5..86a98bb11d 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -106,14 +106,30 @@ python () { | |||
106 | d.setVarFlag(var, 'func', '1') | 106 | d.setVarFlag(var, 'func', '1') |
107 | } | 107 | } |
108 | 108 | ||
109 | def fstype_variables(d): | ||
110 | import oe.image | ||
111 | |||
112 | image = oe.image.Image(d) | ||
113 | alltypes, fstype_groups, cimages = image._get_image_types() | ||
114 | fstype_vars = set() | ||
115 | for fstype_group in fstype_groups: | ||
116 | for fstype in fstype_group: | ||
117 | fstype_vars.add('IMAGE_CMD_' + fstype) | ||
118 | if fstype in cimages: | ||
119 | for ctype in cimages[fstype]: | ||
120 | fstype_vars.add('COMPRESS_CMD_' + ctype) | ||
121 | |||
122 | return sorted(fstype_vars) | ||
123 | |||
109 | def rootfs_variables(d): | 124 | def rootfs_variables(d): |
110 | from oe.rootfs import variable_depends | 125 | from oe.rootfs import variable_depends |
111 | variables = ['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPEDEP_','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE', | 126 | variables = ['IMAGE_DEVICE_TABLES','BUILD_IMAGES_FROM_FEEDS','IMAGE_TYPES_MASKED','IMAGE_ROOTFS_ALIGNMENT','IMAGE_OVERHEAD_FACTOR','IMAGE_ROOTFS_SIZE','IMAGE_ROOTFS_EXTRA_SPACE', |
112 | 'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS', | 127 | 'IMAGE_ROOTFS_MAXSIZE','IMAGE_NAME','IMAGE_LINK_NAME','IMAGE_MANIFEST','DEPLOY_DIR_IMAGE','RM_OLD_IMAGE','IMAGE_FSTYPES','IMAGE_INSTALL_COMPLEMENTARY','IMAGE_LINGUAS','SDK_OS', |
113 | 'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP', | 128 | 'SDK_OUTPUT','SDKPATHNATIVE','SDKTARGETSYSROOT','SDK_DIR','SDK_VENDOR','SDKIMAGE_INSTALL_COMPLEMENTARY','SDK_PACKAGE_ARCHS','SDK_OUTPUT','SDKTARGETSYSROOT','MULTILIBRE_ALLOW_REP', |
114 | 'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS', | 129 | 'MULTILIB_TEMP_ROOTFS','MULTILIB_VARIANTS','MULTILIBS','ALL_MULTILIB_PACKAGE_ARCHS','MULTILIB_GLOBAL_VARIANTS','BAD_RECOMMENDATIONS','NO_RECOMMENDATIONS','PACKAGE_ARCHS', |
115 | 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS', | 130 | 'PACKAGE_CLASSES','TARGET_VENDOR','TARGET_VENDOR','TARGET_ARCH','TARGET_OS','OVERRIDES','BBEXTENDVARIANT','FEED_DEPLOYDIR_BASE_URI','INTERCEPT_DIR','USE_DEVFS', |
116 | 'COMPRESSIONTYPES', 'IMAGE_GEN_DEBUGFS'] | 131 | 'COMPRESSIONTYPES', 'IMAGE_GEN_DEBUGFS'] |
132 | variables.extend(fstype_variables(d)) | ||
117 | variables.extend(command_variables(d)) | 133 | variables.extend(command_variables(d)) |
118 | variables.extend(variable_depends(d)) | 134 | variables.extend(variable_depends(d)) |
119 | return " ".join(variables) | 135 | return " ".join(variables) |