summaryrefslogtreecommitdiffstats
path: root/platforms/image_squashfs.in
blob: 6571b9d6c96f64caf01075bd25630fc77cc13008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## SECTION=image

menuconfig IMAGE_SQUASHFS
	bool
	select HOST_SQUASHFS_TOOLS
	prompt "Generate images/root.squashfs "
	help
	  Build a squashfs image of the root filesystem. This image can be stored
	  linearly into target's flash device at the start of the desired
	  partition. You should erase the whole partition first if the image
	  is smaller than partition's size. If not, garbage data in the remaining
	  space could confuse the filesystem driver.

if IMAGE_SQUASHFS

choice
	prompt "squashfs version"
	default HOST_SQUASHFS_TOOLS_V3X
	help
	  Select 4.x if you are using linux-2.6.29 or later
	  Otherwise select the version that matches the squashfs patch you've
	  applied to your linux kernel tree.

	config HOST_SQUASHFS_TOOLS_V3X
	bool "3.x"
	help
	  Select 4.0 if you are using linux-2.6.29 or later
	  Otherwise select the version that matches the squashfs patch you've
	  applied to your linux kernel tree.

	config HOST_SQUASHFS_TOOLS_V4X
	bool "4.x"
	help
	  Select 4.x if you are using linux-2.6.29 or later
	  Otherwise select the version that matches the squashfs patch you've
	  applied to your linux kernel tree.

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 "256k"
	prompt "Block size"
	help
	  This allows the compression data block size to be selected, both "K" and "M"
	  postfixes are supported, this can be either 4K, 8K, 16K, 32K, 64K, 128K,
	  256K, 512K or 1M bytes.

config IMAGE_SQUASHFS_EXTRA_ARGS
	string
	default ""
	prompt "extra arguments passed to mksquashfs"
	help
	  You can add extra arguments for mksquashfs here

endif