From patchwork Thu May 15 21:31:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 349367 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 84F4914009E for ; Fri, 16 May 2014 07:32:14 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C50A08AE44; Thu, 15 May 2014 21:32:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kpdhHAgYxOu3; Thu, 15 May 2014 21:32:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5D18693772; Thu, 15 May 2014 21:32:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7BC211C2DA4 for ; Thu, 15 May 2014 21:32:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 773BA8C981 for ; Thu, 15 May 2014 21:32:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qNJnFlVV+xwa for ; Thu, 15 May 2014 21:32:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id B058C8C980 for ; Thu, 15 May 2014 21:32:11 +0000 (UTC) Received: from asgard (host152.190-227-169.telecom.net.ar [190.227.169.152]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.8/8.14.8) with ESMTP id s4FLW4oc001727 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 15 May 2014 21:32:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1400189529; bh=0s7mfF+rwq+u9S1LX6aPqxBY9GOWztnG8xecKtQCThA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FOUtxXxZUGJrSzZ/t14ORMgCVfYz/Ycl2ChBz/VmgnPXBklhNq9OlQF9AEDCAOIWr hF0mbR0BQ+/Q806hPOdlFNXIFeSge39uq57vAGQXMNpSmVUvNMJexbHz4DfGJOp/5+ muoKWa1UBHkjFuOkK3CvigTWj0mxQ8LqV01hIAnE= Received: by asgard (sSMTP sendmail emulation); Thu, 15 May 2014 18:31:59 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Thu, 15 May 2014 18:31:36 -0300 Message-Id: <1400189496-29633-3-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1400189496-29633-1-git-send-email-gustavo@zacarias.com.ar> References: <1400189496-29633-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.98.1 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 3/3] fs/squashfs: add lz4 compression support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gustavo Zacarias --- fs/squashfs/Config.in | 3 +++ fs/squashfs/squashfs.mk | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in index 817909d..ca9ddb2 100644 --- a/fs/squashfs/Config.in +++ b/fs/squashfs/Config.in @@ -15,6 +15,9 @@ choice config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP bool "gzip" +config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4 + bool "lz4" + config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA bool "lzma" diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index eb5fc3e..446906f 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -6,6 +6,9 @@ ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs +ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y) +ROOTFS_SQUASHFS_ARGS += -comp lz4 +else ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) ROOTFS_SQUASHFS_ARGS += -comp lzo else @@ -19,6 +22,7 @@ ROOTFS_SQUASHFS_ARGS += -comp gzip endif endif endif +endif define ROOTFS_SQUASHFS_CMD $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \