From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from webbox1416.server-home.net ([77.236.96.61]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RrpWF-0004Fp-GS for ptxdist@pengutronix.de; Mon, 30 Jan 2012 12:35:34 +0100 Received: from comm.systec-electronic.de (95-91-85-164-dynip.superkabel.de [95.91.85.164]) by webbox1416.server-home.net (Postfix) with ESMTPA id B6B8427A62F for ; Mon, 30 Jan 2012 12:39:53 +0100 (CET) From: Alexander Stein Date: Mon, 30 Jan 2012 12:35:25 +0100 Message-Id: <1327923325-21515-2-git-send-email-alexander.stein@systec-electronic.com> In-Reply-To: <1327923325-21515-1-git-send-email-alexander.stein@systec-electronic.com> References: <1327923325-21515-1-git-send-email-alexander.stein@systec-electronic.com> Subject: [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Alexander Stein --- platforms/image_squashfs.in | 23 +++++++++++++++++++++++ rules/post/image_squashfs.make | 2 ++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/platforms/image_squashfs.in b/platforms/image_squashfs.in index 0d652d9..43de03b 100644 --- a/platforms/image_squashfs.in +++ b/platforms/image_squashfs.in @@ -37,6 +37,29 @@ choice endchoice +choice + prompt "squashfs compression mode" + depends on HOST_SQUASHFS_TOOLS_V4X + help + Select your prefered compression mode. GZIP seems to have a better + compression rate while LZO is faster then GZIP. This will make a difference + in mount time of your filesystem depending on your hardware configuration. + + config HOST_SQUASHFS_COMPRESSION_MODE_GZIP + bool "gzip" + help + Select your prefered compression mode. GZIP seems to have a better + compression rate while LZO is faster then GZIP. This will make a difference + in mount time of your filesystem depending on your hardware configuration. + + config HOST_SQUASHFS_COMPRESSION_MODE_LZO + bool "lzo" + help + Select your prefered compression mode. GZIP seems to have a better + compression rate while LZO is faster then GZIP. This will make a difference + in mount time of your filesystem depending on your hardware configuration. +endchoice + config IMAGE_SQUASHFS_BLOCK_SIZE string default "${PTXCONF_FLASH_BLOCKSIZE}" diff --git a/rules/post/image_squashfs.make b/rules/post/image_squashfs.make index 5462199..6a260db 100644 --- a/rules/post/image_squashfs.make +++ b/rules/post/image_squashfs.make @@ -12,6 +12,8 @@ SEL_ROOTFS-$(PTXCONF_IMAGE_SQUASHFS) += $(IMAGEDIR)/root.squashfs IMAGE_SQUASHFS_EXTRA_ARGS := \ $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_TOOLS_V3X, $(call ptx/ifdef, PTXCONF_ENDIAN_BIG, -be, -le), ) \ + $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_TOOLS_V4X, $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_COMPRESSION_MODE_GZIP, -comp gzip,),) \ + $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_TOOLS_V4X, $(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_COMPRESSION_MODE_LZO, -comp lzo,),) \ $(PTXCONF_IMAGE_SQUASHFS_EXTRA_ARGS) $(IMAGEDIR)/root.squashfs: $(STATEDIR)/image_working_dir $(STATEDIR)/host-squashfs-tools.install.post -- 1.7.3.4 -- ptxdist mailing list ptxdist@pengutronix.de