From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RsdOv-00013P-5k for ptxdist@pengutronix.de; Wed, 01 Feb 2012 17:51:17 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RsdOv-0005ai-4v for ptxdist@pengutronix.de; Wed, 01 Feb 2012 17:51:17 +0100 Date: Wed, 1 Feb 2012 17:51:17 +0100 From: Michael Olbrich Message-ID: <20120201165117.GL32382@pengutronix.de> References: <20120130141145.GE31245@pengutronix.de> <1327937861-32188-1-git-send-email-alexander.stein@systec-electronic.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1327937861-32188-1-git-send-email-alexander.stein@systec-electronic.com> Subject: Re: [ptxdist] [PATCH v2] 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: , 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 On Mon, Jan 30, 2012 at 04:37:41PM +0100, Alexander Stein wrote: > Signed-off-by: Alexander Stein > --- > Changes in v2: > * Add proposed changes from Michael Tnx. Applied. Michael > > platforms/image_squashfs.in | 28 ++++++++++++++++++++++++++++ > rules/post/image_squashfs.make | 1 + > 2 files changed, 29 insertions(+), 0 deletions(-) > > diff --git a/platforms/image_squashfs.in b/platforms/image_squashfs.in > index 0d652d9..70bb140 100644 > --- a/platforms/image_squashfs.in > +++ b/platforms/image_squashfs.in > @@ -37,6 +37,34 @@ 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 HOST_SQUASHFS_COMPRESSION_MODE > + string > + default "gzip" if HOST_SQUASHFS_COMPRESSION_MODE_GZIP > + default "lzo" if HOST_SQUASHFS_COMPRESSION_MODE_LZO > + > 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..fdefadf 100644 > --- a/rules/post/image_squashfs.make > +++ b/rules/post/image_squashfs.make > @@ -12,6 +12,7 @@ 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, -comp $(PTXCONF_HOST_SQUASHFS_COMPRESSION_MODE), ) \ > $(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 > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de