From patchwork Tue Jan 14 11:00:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 23180 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9CBB420DF3 for ; Tue, 14 Jan 2014 11:02:39 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id le5sf891579vcb.7 for ; Tue, 14 Jan 2014 03:02:38 -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=xam+17EnYKqQ7OKqwX100ohpCRRCMovG0ZVWkprLa18=; b=Cb1x5Kvus3ZhEL5QoZ29bZ+ZwTEU3u09TGmw7l/Hr8jGgdhXvm6tX0ijAiWg4bR0s2 AW7pzBaOqRSucQ4R6R10WShJ+EJogz7lUyMEAlReAWXFb6EI+ahX3ese0jdkbtIblo84 jHNFg4WMmv6Aas96BgtFFfHFDrCck9SDhtzwSff4RDmLJYZMowxHZmMD8Twvdg2gKfJF debTPLFAHmBiiQ8Ihsx9bF5clUGIdTr7z/vOJa/0FHQGlS7PE1b0dTfjFjBbh3f5Q88J 2Fo7IpyQiJ17wnJrYZIl3wDlOwqbi4Xer7rdsOSlp72E+GTL0LF97VL3Ix/0jXxYOdoc Uqig== X-Gm-Message-State: ALoCoQlCC61bjQdwDl7+srz0FordmOLjt2QIOYedMNtaigU9TG5Wir/nJuwttmuJviob+g1mdrUK X-Received: by 10.58.206.47 with SMTP id ll15mr12245425vec.28.1389697358891; Tue, 14 Jan 2014 03:02:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.5 with SMTP id x5ls55443qeo.67.gmail; Tue, 14 Jan 2014 03:02:38 -0800 (PST) X-Received: by 10.220.145.75 with SMTP id c11mr446623vcv.30.1389697358802; Tue, 14 Jan 2014 03:02:38 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id gq3si74711vdc.93.2014.01.14.03.02.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 03:02:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id jw12so5947483veb.10 for ; Tue, 14 Jan 2014 03:02:38 -0800 (PST) X-Received: by 10.58.22.233 with SMTP id h9mr98430vef.56.1389697358738; Tue, 14 Jan 2014 03:02:38 -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 ey3csp192211ved; Tue, 14 Jan 2014 03:02:38 -0800 (PST) X-Received: by 10.69.19.225 with SMTP id gx1mr1060094pbd.62.1389697357738; Tue, 14 Jan 2014 03:02:37 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id j5si134640pbs.301.2014.01.14.03.02.37 for ; Tue, 14 Jan 2014 03:02:37 -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 297DE6E3DF; 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-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mail.openembedded.org (Postfix) with ESMTP id 578046DDF5 for ; Tue, 14 Jan 2014 11:02:25 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hm2so526602wib.10 for ; Tue, 14 Jan 2014 03:02:25 -0800 (PST) X-Received: by 10.194.219.232 with SMTP id pr8mr26309030wjc.6.1389697345928; Tue, 14 Jan 2014 03:02:25 -0800 (PST) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id z2sm878771wiy.11.2014.01.14.03.02.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jan 2014 03:02:25 -0800 (PST) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Tue, 14 Jan 2014 12:00:48 +0100 Message-Id: <1389697249-4062-4-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 4/5] kernel.bbclass: add support for LZ4 initramfs files 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.128.179 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/kernel.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 5fef446..f2a5ec5 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -87,7 +87,7 @@ copy_initramfs() { mkdir -p ${B}/usr # Find and use the first initramfs image archive type we find rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio - for img in cpio.gz cpio.lzo cpio.lzma cpio.xz; do + for img in cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/. case $img in @@ -96,6 +96,11 @@ copy_initramfs() { gunzip -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img break ;; + *lz4) + echo "lz4 decompressing image" + lz4 -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img + break + ;; *lzo) echo "lzo decompressing image" lzop -df ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.$img