summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-06-21 19:10:20 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-30 19:56:36 (GMT)
commit55c381316d8377cb55c898402058e576fb2e8229 (patch)
treec70a36cb9bdd4b7914bdd67cd46a310aaf0e01a4
parent65c68925b576d83b14ea711b027e4198744e81a3 (diff)
downloadpoky-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>
-rw-r--r--meta/classes/image_types.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index dd69612..8c86227 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
49IMAGE_CMD_btrfs () {
50 mkfs.btrfs -b `expr ${ROOTFS_SIZE} \* 1024` ${EXTRA_IMAGECMD} -r ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.btrfs
51}
52
48IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend" 53IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs ${EXTRA_IMAGECMD} -noappend"
49IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${EXTRA_IMAGECMD} -noappend" 54IMAGE_CMD_squashfs-lzma = "mksquashfs-lzma ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.squashfs-lzma ${EXTRA_IMAGECMD} -noappend"
50IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar ." 55IMAGE_CMD_tar = "cd ${IMAGE_ROOTFS} && tar -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar ."
@@ -71,6 +76,7 @@ EXTRA_IMAGECMD_ext2 ?= "-i 8192"
71EXTRA_IMAGECMD_ext2.gz ?= "-i 8192" 76EXTRA_IMAGECMD_ext2.gz ?= "-i 8192"
72EXTRA_IMAGECMD_ext3 ?= "-i 8192" 77EXTRA_IMAGECMD_ext3 ?= "-i 8192"
73EXTRA_IMAGECMD_ext3.gz ?= "-i 8192" 78EXTRA_IMAGECMD_ext3.gz ?= "-i 8192"
79EXTRA_IMAGECMD_btrfs ?= ""
74 80
75IMAGE_DEPENDS = "" 81IMAGE_DEPENDS = ""
76IMAGE_DEPENDS_jffs2 = "mtd-utils-native" 82IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
@@ -79,6 +85,7 @@ IMAGE_DEPENDS_ext2 = "genext2fs-native"
79IMAGE_DEPENDS_ext2.gz = "genext2fs-native" 85IMAGE_DEPENDS_ext2.gz = "genext2fs-native"
80IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" 86IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native"
81IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" 87IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native"
88IMAGE_DEPENDS_btrfs = "btrfs-tools-native"
82IMAGE_DEPENDS_squashfs = "squashfs-tools-native" 89IMAGE_DEPENDS_squashfs = "squashfs-tools-native"
83IMAGE_DEPENDS_squashfs-lzma = "squashfs-lzma-tools-native" 90IMAGE_DEPENDS_squashfs-lzma = "squashfs-lzma-tools-native"
84IMAGE_DEPENDS_ubi = "mtd-utils-native" 91IMAGE_DEPENDS_ubi = "mtd-utils-native"