diff options
author | Matthew McClintock <msm@freescale.com> | 2011-09-28 23:20:58 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-29 16:54:38 +0100 |
commit | 8240072c70ba13033e10ebd954e3f4d0b7c0a552 (patch) | |
tree | bdcd6ebbbce571d717d25942ed1e038ed3736eb1 /meta/classes/image_types_uboot.bbclass | |
parent | 1e5ee838ab9234c5f9544a1ac8285c79aae8bd6d (diff) | |
download | poky-8240072c70ba13033e10ebd954e3f4d0b7c0a552.tar.gz |
Add support for generating ext2.bz2{, .u-boot} images
Machines can now add ext2.bz2 and ext2.bz2.u-boot images as a
generated image type. This also adds an extra parameter to
oe_mkimage which is the image compression type for mkimage
(From OE-Core rev: 4502a83ce67ac778112c25a1f4fa097c47e895b1)
Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image_types_uboot.bbclass')
-rw-r--r-- | meta/classes/image_types_uboot.bbclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/meta/classes/image_types_uboot.bbclass b/meta/classes/image_types_uboot.bbclass index 10fa2f7f8e..aee88a64e6 100644 --- a/meta/classes/image_types_uboot.bbclass +++ b/meta/classes/image_types_uboot.bbclass | |||
@@ -1,20 +1,24 @@ | |||
1 | inherit image_types kernel-arch | 1 | inherit image_types kernel-arch |
2 | 2 | ||
3 | oe_mkimage () { | 3 | oe_mkimage () { |
4 | mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C gzip -n ${IMAGE_NAME} \ | 4 | mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C $2 -n ${IMAGE_NAME} \ |
5 | -d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot | 5 | -d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot |
6 | } | 6 | } |
7 | 7 | ||
8 | IMAGE_DEPENDS_ext2.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | 8 | IMAGE_DEPENDS_ext2.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" |
9 | IMAGE_CMD_ext2.gz.u-boot = "${IMAGE_CMD_ext2.gz} \ | 9 | IMAGE_CMD_ext2.gz.u-boot = "${IMAGE_CMD_ext2.gz} \ |
10 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.gz" | 10 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.gz gzip" |
11 | |||
12 | IMAGE_DEPENDS_ext2.bz2.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | ||
13 | IMAGE_CMD_ext2.bz2.u-boot = "${IMAGE_CMD_ext2.bz2} \ | ||
14 | oe_mkimage ${IMAGE_NAME}.rootfs.ext2.bz2 bzip2" | ||
11 | 15 | ||
12 | IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | 16 | IMAGE_DEPENDS_ext3.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" |
13 | IMAGE_CMD_ext3.gz.u-boot = "${IMAGE_CMD_ext3.gz} \ | 17 | IMAGE_CMD_ext3.gz.u-boot = "${IMAGE_CMD_ext3.gz} \ |
14 | oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz" | 18 | oe_mkimage ${IMAGE_NAME}.rootfs.ext3.gz gzip" |
15 | 19 | ||
16 | IMAGE_DEPENDS_ext4.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" | 20 | IMAGE_DEPENDS_ext4.gz.u-boot = "genext2fs-native e2fsprogs-native u-boot-mkimage-native" |
17 | IMAGE_CMD_ext4.gz.u-boot = "${IMAGE_CMD_ext4.gz} \ | 21 | IMAGE_CMD_ext4.gz.u-boot = "${IMAGE_CMD_ext4.gz} \ |
18 | oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz" | 22 | oe_mkimage ${IMAGE_NAME}.rootfs.ext4.gz gzip" |
19 | 23 | ||
20 | IMAGE_TYPES += "ext2.gz.u-boot ext3.gz.u-boot ext4.gz.u-boot" | 24 | IMAGE_TYPES += "ext2.gz.u-boot ext2.bz2.u-boot ext3.gz.u-boot ext4.gz.u-boot" |