From: Andrei Gherzan Date: Thu, 12 Jul 2012 14:31:54 +0000 (+0300) Subject: image_types.bbclass: Fix COMPRESS_CMD for xz to redirect compressed data to file X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~40851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ceea61636d6a6f886002e3c29941da3356157ac;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git image_types.bbclass: Fix COMPRESS_CMD for xz to redirect compressed data to file Having -c modifier makes xz to output the compressed data to stdout. In this way the needed data will be in the do_rootfs log. Redirect data to ${IMAGE_NAME}.rootfs.${type}.xz . Signed-off-by: Andrei Gherzan Signed-off-by: Saul Wold --- diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 5734edfb223..0e79820612d 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -236,7 +236,7 @@ COMPRESSIONTYPES = "gz bz2 lzma xz" COMPRESS_CMD_lzma = "lzma -k -f -7 ${IMAGE_NAME}.rootfs.${type}" COMPRESS_CMD_gz = "gzip -f -9 -c ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.gz" COMPRESS_CMD_bz2 = "bzip2 -f -k ${IMAGE_NAME}.rootfs.${type}" -COMPRESS_CMD_xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.rootfs.${type}" +COMPRESS_CMD_xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.xz" COMPRESS_DEPENDS_lzma = "xz-native" COMPRESS_DEPENDS_gz = "" COMPRESS_DEPENDS_bz2 = ""