From patchwork Mon Jan 21 22:55:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 214293 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 168392C0079 for ; Tue, 22 Jan 2013 09:57:13 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 380AA30E88; Mon, 21 Jan 2013 22:57:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4y2fMGqse0b2; Mon, 21 Jan 2013 22:57:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6767E30ED5; Mon, 21 Jan 2013 22:56:32 +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 32C328F74B for ; Mon, 21 Jan 2013 22:56:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 51ED68A94A for ; Mon, 21 Jan 2013 22:56:04 +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 YFFTpZfFeqwp for ; Mon, 21 Jan 2013 22:56:03 +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 C0EAC8A942 for ; Mon, 21 Jan 2013 22:56:02 +0000 (UTC) Received: from asgard (host110.190-225-90.telecom.net.ar [190.225.90.110]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id r0LMtt4M029915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Jan 2013 22:55:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1358808960; bh=sYc9F72OfBn11SHGzEM0+11CM1K8rZpAT0/Z030pXmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iSZGyMF9vcf8B+BEr09pZEqY15/+3OSey5jN3DfF13t/O39htx9CC/z1fOn/8of1v uPMYuVfVKjOkmgr6OJY9VtnWprfd+qBA9D2S5QG2JnBUvZIgxDw4Z+XG3S5ZDiaY4K je/kLugUlFQs/MAFJcTEDmroUxbE8palUWvIhbQ0= Received: by asgard (sSMTP sendmail emulation); Mon, 21 Jan 2013 19:55:55 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 21 Jan 2013 19:55:43 -0300 Message-Id: <1358808943-17063-3-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1358808943-17063-1-git-send-email-gustavo@zacarias.com.ar> References: <1358808943-17063-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.97.5 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 3/3] initramfs: add support for LZO and XZ compression methods 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/common.mk | 8 +++++++- fs/cpio/Config.in | 18 ++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/fs/common.mk b/fs/common.mk index 8b5b2f2..0c171fc 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -39,7 +39,7 @@ ROOTFS_DEVICE_TABLES = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE)) \ define ROOTFS_TARGET_INTERNAL # extra deps -ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma) +ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma) $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZO),host-lzop) $$(if $$(BR2_TARGET_ROOTFS_$(2)_XZ),host-xz) $$(BINARIES_DIR)/rootfs.$(1): $$(ROOTFS_$(2)_DEPENDENCIES) @$$(call MESSAGE,"Generating root filesystem image rootfs.$(1)") @@ -70,6 +70,12 @@ endif ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZMA),y) $$(LZMA) -9 -c $$@ > $$@.lzma endif +ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZO),y) + $$(LZOP) -9 -c $$@ > $$@.lzo +endif +ifeq ($$(BR2_TARGET_ROOTFS_$(2)_XZ),y) + $$(XZ) -9 -c $$@ > $$@.xz +endif rootfs-$(1)-show-depends: @echo $$(ROOTFS_$(2)_DEPENDENCIES) diff --git a/fs/cpio/Config.in b/fs/cpio/Config.in index 0669a44..d9e1733 100644 --- a/fs/cpio/Config.in +++ b/fs/cpio/Config.in @@ -18,22 +18,32 @@ choice config BR2_TARGET_ROOTFS_CPIO_NONE bool "no compression" help - Do not compress the cpio filesystem. + Do not compress the cpio filesystem. config BR2_TARGET_ROOTFS_CPIO_GZIP bool "gzip" help - Do compress the cpio filesystem with gzip. + Do compress the cpio filesystem with gzip. config BR2_TARGET_ROOTFS_CPIO_BZIP2 bool "bzip2" help - Do compress the cpio filesystem with bzip2. + Do compress the cpio filesystem with bzip2. config BR2_TARGET_ROOTFS_CPIO_LZMA bool "lzma" help - Do compress the cpio filesystem with lzma. + Do compress the cpio filesystem with lzma. + +config BR2_TARGET_ROOTFS_CPIO_LZO + bool "lzo" + help + Do compress the cpio filesystem with lzo. + +config BR2_TARGET_ROOTFS_CPIO_XZ + bool "xz" + help + Do compress the cpio filesystem with xz. endchoice