diff options
-rw-r--r-- | meta/classes/image_types.bbclass | 11 | ||||
-rw-r--r-- | meta/classes/image_types_uboot.bbclass | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 4619ebe109..2260915729 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -53,6 +53,13 @@ IMAGE_CMD_ext2.bz2 () { | |||
53 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2 | 53 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.bz2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.bz2 |
54 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz | 54 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz |
55 | } | 55 | } |
56 | IMAGE_CMD_ext2.lzma () { | ||
57 | rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz | ||
58 | genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 | ||
59 | lzma -f -7 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 | ||
60 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.lzma ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.lzma | ||
61 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz | ||
62 | } | ||
56 | 63 | ||
57 | IMAGE_CMD_ext3 () { | 64 | IMAGE_CMD_ext3 () { |
58 | genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 | 65 | genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 |
@@ -134,6 +141,8 @@ IMAGE_DEPENDS_jffs2 = "mtd-utils-native" | |||
134 | IMAGE_DEPENDS_cramfs = "cramfs-native" | 141 | IMAGE_DEPENDS_cramfs = "cramfs-native" |
135 | IMAGE_DEPENDS_ext2 = "genext2fs-native" | 142 | IMAGE_DEPENDS_ext2 = "genext2fs-native" |
136 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" | 143 | IMAGE_DEPENDS_ext2.gz = "genext2fs-native" |
144 | IMAGE_DEPENDS_ext2.bz2 = "genext2fs-native" | ||
145 | IMAGE_DEPENDS_ext2.lzma = "genext2fs-native" | ||
137 | IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" | 146 | IMAGE_DEPENDS_ext3 = "genext2fs-native e2fsprogs-native" |
138 | IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" | 147 | IMAGE_DEPENDS_ext3.gz = "genext2fs-native e2fsprogs-native" |
139 | IMAGE_DEPENDS_ext4 = "genext2fs-native e2fsprogs-native" | 148 | IMAGE_DEPENDS_ext4 = "genext2fs-native e2fsprogs-native" |
@@ -148,4 +157,4 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native" | |||
148 | IMAGE_DEPENDS_ubifs = "mtd-utils-native" | 157 | IMAGE_DEPENDS_ubifs = "mtd-utils-native" |
149 | 158 | ||
150 | # This variable is available to request which values are suitable for IMAGE_FSTYPES | 159 | # This variable is available to request which values are suitable for IMAGE_FSTYPES |
151 | IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma" | 160 | IMAGE_TYPES = "jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma" |
diff --git a/meta/classes/image_types_uboot.bbclass b/meta/classes/image_types_uboot.bbclass index aee88a64e6..65dc91b3ff 100644 --- a/meta/classes/image_types_uboot.bbclass +++ b/meta/classes/image_types_uboot.bbclass | |||
@@ -13,6 +13,10 @@ IMAGE_DEPENDS_ext2.bz2.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimag | |||
13 | IMAGE_CMD_ext2.bz2.u-boot = "${IMAGE_CMD_ext2.bz2} \ | 13 | IMAGE_CMD_ext2.bz2.u-boot = "${IMAGE_CMD_ext2.bz2} \ |
14 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.bz2 bzip2" | 14 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.bz2 bzip2" |
15 | 15 | ||
16 | IMAGE_DEPENDS_ext2.lzma.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | ||
17 | IMAGE_CMD_ext2.lzma.u-boot = "${IMAGE_CMD_ext2.lzma} \ | ||
18 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.lzma lzma" | ||
19 | |||
16 | IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | 20 | IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" |
17 | IMAGE_CMD_ext3.gz.u-boot = "${IMAGE_CMD_ext3.gz} \ | 21 | IMAGE_CMD_ext3.gz.u-boot = "${IMAGE_CMD_ext3.gz} \ |
18 | oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz gzip" | 22 | oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz gzip" |
@@ -21,4 +25,4 @@ IMAGE_DEPENDS_ext4.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage | |||
21 | IMAGE_CMD_ext4.gz.u-boot = "${IMAGE_CMD_ext4.gz} \ | 25 | IMAGE_CMD_ext4.gz.u-boot = "${IMAGE_CMD_ext4.gz} \ |
22 | oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz gzip" | 26 | oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz gzip" |
23 | 27 | ||
24 | IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext3.gz.u-boot ext4.gz.u-boot" | 28 | IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot ext3.gz.u-boot ext4.gz.u-boot" |