summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2012-01-30 16:37:41 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-02-01 13:15:37 +0100
commitaac1225b81c708041f01ebe58c29bb061facdc1b (patch)
treec3adedff4908cc902d75e666d840aa5c6b86fbc9
parentfa361ae134da42d6574b2d0d6e17cafdfc4e9cc2 (diff)
downloadptxdist-aac1225b81c708041f01ebe58c29bb061facdc1b.tar.gz
ptxdist-aac1225b81c708041f01ebe58c29bb061facdc1b.tar.xz
image_squashfs: Add possibility for LZO compression
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--platforms/image_squashfs.in28
-rw-r--r--rules/post/image_squashfs.make1
2 files changed, 29 insertions, 0 deletions
diff --git a/platforms/image_squashfs.in b/platforms/image_squashfs.in
index 0d652d952..70bb140aa 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 5462199d2..fdefadf9f 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