generic-poky/meta/classes/image_types_uboot.bbclass
Richard Purdie 8f07bdc0a4 image_types_uboot: Update to work after recent image_types changes
(From OE-Core rev: 8054497b393d40a2ed8c802c74a02e92a3001297)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-29 18:25:03 +00:00

24 lines
961 B
Text

inherit image_types kernel-arch
oe_mkimage () {
mkimage -A ${UBOOT_ARCH} -O linux -T ramdisk -C $2 -n ${IMAGE_NAME} \
-d ${DEPLOY_DIR_IMAGE}/$1 ${DEPLOY_DIR_IMAGE}/$1.u-boot
}
COMPRESSIONTYPES += "gz.u-boot bz2.u-boot lzma.u-boot u-boot"
COMPRESS_DEPENDS_u-boot = "u-boot-mkimage-native"
COMPRESS_CMD_u-boot = "oe_mkimage ${IMAGE_NAME}.rootfs.${type} none"
COMPRESS_DEPENDS_gz.u-boot = "u-boot-mkimage-native"
COMPRESS_CMD_gz.u-boot = "${COMPRESS_CMD_gz}; oe_mkimage ${IMAGE_NAME}.rootfs.${type}.gz gzip"
COMPRESS_DEPENDS_bz2.u-boot = "u-boot-mkimage-native"
COMPRESS_CMD_bz2.u-boot = "${COMPRESS_CMD_bz2}; oe_mkimage ${IMAGE_NAME}.rootfs.${type}.bz2 bzip2"
COMPRESS_DEPENDS_lzma.u-boot = "u-boot-mkimage-native"
COMPRESS_CMD_lzma.u-boot = "${COMPRESS_CMD_lzma}; oe_mkimage ${IMAGE_NAME}.rootfs.${type}.lzma lzma"
IMAGE_TYPES += "ext2.u-boot ext2.gz.u-boot ext2.bz2.u-boot ext2.lzma.u-boot ext3.gz.u-boot ext4.gz.u-boot"