From patchwork Tue Jan 14 11:00:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 23182 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5524320DF3 for ; Tue, 14 Jan 2014 11:02:43 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf3892124pbb.1 for ; Tue, 14 Jan 2014 03:02:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=wfJfzogoMM2IV1W0uRLWbGUTqkS7NaPikKdPKiXPGIM=; b=R3qvg7x14ORyeHCOOvVT53WOqK+Rx5EkkQYayu/pWN2jU8rC5/MPmf7ElOiEfm+vSb WNOBAGRHF+l3UZgzWQRBoTSr0slb2ppIWDdxpy6ejODED7hYjHZN8PL03gOrLgr67pY5 uo25uxPwjD+TmQxdubctI4kJLaGBBTAooa38pEFqWv2MsYS2ph8Tw79CRutVUGPWlx2L YapFsWASgbvWNGwASL9FM9RvgsdoFsLYkwFdRk58pnAX1UQv5wRgP4SMLH5Uvb4MKZAO CsJWseVWSDPoWhXRSMwOXDjDFBuJ4nitT+4E5nREBfK2RWWIZHgqZgAxcnltS7xQlKF6 mZ+g== X-Gm-Message-State: ALoCoQmJ73nKvUNflP/gzo3JsGRIMzs5yCv84bFthSSK1PCyebGPXqdsVkt259teSq2HBWDwAlxR X-Received: by 10.66.189.228 with SMTP id gl4mr344106pac.26.1389697362489; Tue, 14 Jan 2014 03:02:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.229 with SMTP id t5ls50958qej.61.gmail; Tue, 14 Jan 2014 03:02:42 -0800 (PST) X-Received: by 10.221.30.14 with SMTP id sa14mr51226vcb.44.1389697362370; Tue, 14 Jan 2014 03:02:42 -0800 (PST) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id xg12si72602vcb.102.2014.01.14.03.02.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 03:02:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id i11so2527412vbh.1 for ; Tue, 14 Jan 2014 03:02:42 -0800 (PST) X-Received: by 10.58.80.103 with SMTP id q7mr634304vex.33.1389697362297; Tue, 14 Jan 2014 03:02:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp192215ved; Tue, 14 Jan 2014 03:02:41 -0800 (PST) X-Received: by 10.68.130.103 with SMTP id od7mr900431pbb.87.1389697361414; Tue, 14 Jan 2014 03:02:41 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s7si135697pae.272.2014.01.14.03.02.40 for ; Tue, 14 Jan 2014 03:02:41 -0800 (PST) Received-SPF: pass (google.com: domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 717466E40E; Tue, 14 Jan 2014 11:02:28 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by mail.openembedded.org (Postfix) with ESMTP id 997F56E3EB for ; Tue, 14 Jan 2014 11:02:26 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id u56so213471wes.40 for ; Tue, 14 Jan 2014 03:02:27 -0800 (PST) X-Received: by 10.180.86.9 with SMTP id l9mr2287579wiz.20.1389697347149; Tue, 14 Jan 2014 03:02:27 -0800 (PST) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id bj3sm187681wjb.14.2014.01.14.03.02.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2014 03:02:26 -0800 (PST) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Tue, 14 Jan 2014 12:00:49 +0100 Message-Id: <1389697249-4062-5-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1389697249-4062-1-git-send-email-koen.kooi@linaro.org> References: <1389697249-4062-1-git-send-email-koen.kooi@linaro.org> Cc: Koen Kooi Subject: [OE-core] [PATCH 5/5] image_types bbclass: add support for tar.lz4 and cpio.lz4 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: koen.kooi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Koen Kooi --- meta/classes/image_types.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 54ecb15..48675b8 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -241,17 +241,19 @@ IMAGE_DEPENDS_ubi = "mtd-utils-native" IMAGE_DEPENDS_ubifs = "mtd-utils-native" # This variable is available to request which values are suitable for IMAGE_FSTYPES -IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs iso hddimg squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma vmdk elf" +IMAGE_TYPES = "jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs iso hddimg squashfs squashfs-xz ubi ubifs tar tar.gz tar.bz2 tar.xz tar.lz4 cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 vmdk elf" -COMPRESSIONTYPES = "gz bz2 lzma xz" +COMPRESSIONTYPES = "gz bz2 lzma xz lz4" 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} ${XZ_THREADS} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.xz" +COMPRESS_CMD_lz4 = "lz4c -9 -c ${IMAGE_NAME}.rootfs.${type} > ${IMAGE_NAME}.rootfs.${type}.lz4" COMPRESS_DEPENDS_lzma = "xz-native" COMPRESS_DEPENDS_gz = "" COMPRESS_DEPENDS_bz2 = "" COMPRESS_DEPENDS_xz = "xz-native" +COMPRESS_DEPENDS_lz4 = "lz4-native" RUNNABLE_IMAGE_TYPES ?= "ext2 ext3" RUNNABLE_MACHINE_PATTERNS ?= "qemu"