diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-06-21 12:10:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-30 20:56:36 +0100 |
commit | 55c381316d8377cb55c898402058e576fb2e8229 (patch) | |
tree | c70a36cb9bdd4b7914bdd67cd46a310aaf0e01a4 /meta/classes | |
parent | 65c68925b576d83b14ea711b027e4198744e81a3 (diff) | |
download | poky-55c381316d8377cb55c898402058e576fb2e8229.tar.gz |
image_types.bbclass: enable btrfs as one of the image type
(From OE-Core rev: d9b139122569bff742417984af8f790588d4e110)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index dd696126ec..8c862277bc 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -45,6 +45,11 @@ IMAGE_CMD_ext3.gz () { | |||
45 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz | 45 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz |
46 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz | 46 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz |
47 | } | 47 | } |
48 | |||
49 | IMAGE_CMD_btrfs () { | ||
50 | mkfs.btrfs -b `expr ${ROOTFS_SIZE} \* 1024` ${EXTRA_IMAGECMD} -r ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.btrfs | ||
51 | } | ||
52 | |||
48 | IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" | 53 | IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" |
49 | IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${EXTRA_IMAGECMD} -noappend" | 54 | IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${EXTRA_IMAGECMD} -noappend" |
50 | IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar ." | 55 | IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar ." |
@@ -71,6 +76,7 @@ EXTRA_IMAGECMD_ext2 ?= "-i 8192" | |||
71 | EXTRA_IMAGECMD_ext2.gz ?= "-i 8192" | 76 | EXTRA_IMAGECMD_ext2.gz ?= "-i 8192" |
72 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" | 77 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" |
73 | EXTRA_IMAGECMD_ext3.gz ?= "-i 8192" | 78 | EXTRA_IMAGECMD_ext3.gz ?= "-i 8192" |
79 | EXTRA_IMAGECMD_btrfs ?= "" | ||
74 | 80 | ||
75 | IMAGE_DEPENDS = "" | 81 | IMAGE_DEPENDS = "" |
76 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" | 82 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" |
@@ -79,6 +85,7 @@ IMAGE_DEPENDS_ext2 = "genext2fs-native" | |||
79 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" | 85 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" |
80 | IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" | 86 | IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" |
81 | IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" | 87 | IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" |
88 | IMAGE_DEPENDS_btrfs = "btrfs-tools-native" | ||
82 | IMAGE_DEPENDS_squashfs = "squashfs-tools-native" | 89 | IMAGE_DEPENDS_squashfs = "squashfs-tools-native" |
83 | IMAGE_DEPENDS_squashfs-lzma = "squashfs-lzma-tools-native" | 90 | IMAGE_DEPENDS_squashfs-lzma = "squashfs-lzma-tools-native" |
84 | IMAGE_DEPENDS_ubi = "mtd-utils-native" | 91 | IMAGE_DEPENDS_ubi = "mtd-utils-native" |