mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] host-squashfs-tools: Add LZO support
@ 2012-01-30 11:35 Alexander Stein
  2012-01-30 11:35 ` [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression Alexander Stein
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Stein @ 2012-01-30 11:35 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 rules/host-squashfs-tools.in   |    1 +
 rules/host-squashfs-tools.make |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/rules/host-squashfs-tools.in b/rules/host-squashfs-tools.in
index cddcfa7..d16909e 100644
--- a/rules/host-squashfs-tools.in
+++ b/rules/host-squashfs-tools.in
@@ -3,4 +3,5 @@
 config HOST_SQUASHFS_TOOLS
 	tristate
 	select HOST_ZLIB
+	select HOST_LIBLZO
 	default ALLYES
diff --git a/rules/host-squashfs-tools.make b/rules/host-squashfs-tools.make
index af63a28..5ed76f2 100644
--- a/rules/host-squashfs-tools.make
+++ b/rules/host-squashfs-tools.make
@@ -23,6 +23,7 @@ HOST_SQUASHFS_TOOLS_SUBDIR	:= squashfs-tools
 # Compile
 # ----------------------------------------------------------------------------
 
+HOST_SQUASHFS_TOOLS_MAKE_OPT := LZO_SUPPORT=1
 HOST_SQUASHFS_TOOLS_MAKE_ENV := $(HOST_ENV)
 HOST_SQUASHFS_TOOLS_MAKE_PAR := NO
 HOST_SQUASHFS_TOOLS_INSTALL_OPT = install INSTALL_DIR="$(HOST_SQUASHFS_TOOLS_PKGDIR)/sbin"
-- 
1.7.3.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression
  2012-01-30 11:35 [ptxdist] [PATCH 1/2] host-squashfs-tools: Add LZO support Alexander Stein
@ 2012-01-30 11:35 ` Alexander Stein
  2012-01-30 14:11   ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Stein @ 2012-01-30 11:35 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression
  2012-01-30 11:35 ` [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression Alexander Stein
@ 2012-01-30 14:11   ` Michael Olbrich
  2012-01-30 15:37     ` [ptxdist] [PATCH v2] " Alexander Stein
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2012-01-30 14:11 UTC (permalink / raw)
  To: ptxdist

On Mon, Jan 30, 2012 at 12:35:25PM +0100, Alexander Stein wrote:
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
> ---
>  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 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..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,),) \

	$(call ptx/ifdef, PTXCONF_HOST_SQUASHFS_TOOLS_V4X, -comp $(PTXCONF_HOST_SQUASHFS_COMPRESSION_MODE,) \

instead.

>  	$(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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v2] image_squashfs: Add possibility for LZO compression
  2012-01-30 14:11   ` Michael Olbrich
@ 2012-01-30 15:37     ` Alexander Stein
  2012-02-01 16:51       ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Stein @ 2012-01-30 15:37 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
Changes in v2:
* Add proposed changes from 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH v2] image_squashfs: Add possibility for LZO compression
  2012-01-30 15:37     ` [ptxdist] [PATCH v2] " Alexander Stein
@ 2012-02-01 16:51       ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2012-02-01 16:51 UTC (permalink / raw)
  To: ptxdist

On Mon, Jan 30, 2012 at 04:37:41PM +0100, Alexander Stein wrote:
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
> ---
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-01 16:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-30 11:35 [ptxdist] [PATCH 1/2] host-squashfs-tools: Add LZO support Alexander Stein
2012-01-30 11:35 ` [ptxdist] [PATCH 2/2] image_squashfs: Add possibility for LZO compression Alexander Stein
2012-01-30 14:11   ` Michael Olbrich
2012-01-30 15:37     ` [ptxdist] [PATCH v2] " Alexander Stein
2012-02-01 16:51       ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox