diff options
-rw-r--r-- | meta/classes/bootimg.bbclass | 4 | ||||
-rw-r--r-- | meta/classes/image-live.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/image-vmdk.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/image_types.bbclass | 5 |
4 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 395085d0ab..c370bd6a10 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -232,4 +232,8 @@ python do_bootimg() { | |||
232 | bb.build.exec_func('build_iso', d) | 232 | bb.build.exec_func('build_iso', d) |
233 | } | 233 | } |
234 | 234 | ||
235 | IMAGE_TYPEDEP_iso = "ext3" | ||
236 | IMAGE_TYPEDEP_hddimg = "ext3" | ||
237 | IMAGE_TYPES_MASKED += "iso hddimg" | ||
238 | |||
235 | addtask bootimg before do_build | 239 | addtask bootimg before do_build |
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass index bfb59f808b..c7e6937fa9 100644 --- a/meta/classes/image-live.bbclass +++ b/meta/classes/image-live.bbclass | |||
@@ -13,3 +13,6 @@ do_bootimg[depends] += "${INITRD_IMAGE}:do_rootfs" | |||
13 | do_bootimg[depends] += "${PN}:do_rootfs" | 13 | do_bootimg[depends] += "${PN}:do_rootfs" |
14 | 14 | ||
15 | inherit bootimg | 15 | inherit bootimg |
16 | |||
17 | IMAGE_TYPEDEP_live = "ext3" | ||
18 | IMAGE_TYPES_MASKED += "live" | ||
diff --git a/meta/classes/image-vmdk.bbclass b/meta/classes/image-vmdk.bbclass index 6983e5c823..6a98f17b9d 100644 --- a/meta/classes/image-vmdk.bbclass +++ b/meta/classes/image-vmdk.bbclass | |||
@@ -16,6 +16,9 @@ ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3" | |||
16 | #inherit image-live | 16 | #inherit image-live |
17 | inherit boot-directdisk | 17 | inherit boot-directdisk |
18 | 18 | ||
19 | IMAGE_TYPEDEP_vmdk = "ext3" | ||
20 | IMAGE_TYPES_MASKED += "vmdk" | ||
21 | |||
19 | create_vmdk_image () { | 22 | create_vmdk_image () { |
20 | qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk | 23 | qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk |
21 | ln -sf ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk | 24 | ln -sf ${IMAGE_NAME}.vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vmdk |
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 89749430bc..9577b1f2ec 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -80,6 +80,7 @@ IMAGE_CMD_elf () { | |||
80 | test -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf && rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf | 80 | test -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf && rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf |
81 | mkelfImage --kernel=${ELF_KERNEL} --initrd=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf --append='${ELF_APPEND}' ${EXTRA_IMAGECMD} | 81 | mkelfImage --kernel=${ELF_KERNEL} --initrd=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.elf --append='${ELF_APPEND}' ${EXTRA_IMAGECMD} |
82 | } | 82 | } |
83 | IMAGE_TYPEDEP_elf = "cpio.gz" | ||
83 | 84 | ||
84 | UBI_VOLNAME ?= "${MACHINE}-rootfs" | 85 | UBI_VOLNAME ?= "${MACHINE}-rootfs" |
85 | 86 | ||
@@ -146,3 +147,7 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso" | |||
146 | 147 | ||
147 | # Use IMAGE_EXTENSION_xxx to map image type 'xxx' with real image file extension name(s) for Hob | 148 | # Use IMAGE_EXTENSION_xxx to map image type 'xxx' with real image file extension name(s) for Hob |
148 | IMAGE_EXTENSION_live = "hddimg iso" | 149 | IMAGE_EXTENSION_live = "hddimg iso" |
150 | |||
151 | # The IMAGE_TYPES_MASKED variable will be used to mask out from the IMAGE_FSTYPES, | ||
152 | # images that will not be built at do_rootfs time: vmdk, hddimg, iso, etc. | ||
153 | IMAGE_TYPES_MASKED ?= "" | ||