summaryrefslogtreecommitdiffstats
path: root/platforms/image-root-squashfs.in
blob: 4020c50eb44a715538a1c346312d2d6b575acf79 (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
## SECTION=image

menuconfig IMAGE_ROOT_SQUASHFS
	tristate
	select HOST_GENIMAGE
	select HOST_SQUASHFS_TOOLS
	select IMAGE_ROOT_TGZ
	prompt "Generate images/root.squashfs "
	help
	  Build squashfs images 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_ROOT_SQUASHFS

choice
	prompt "squashfs compression mode"
	help
	  Select your prefered compression mode.

	config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_GZIP
	bool "gzip"
	help
	  Select your prefered compression mode.

	config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZMA
	bool "lzma"
	help
	  Select your prefered compression mode.

	config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZO
	bool "lzo"
	help
	  Select your prefered compression mode.

	config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZ4
	bool "lz4"
	help
	  Select your prefered compression mode.

	config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_XZ
	bool "xz"
	help
	  Select your prefered compression mode.

endchoice

config IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE
        string
        default "gzip" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_GZIP
        default "lzma" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZMA
        default "lzo" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZO
        default "lz4" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_LZ4
        default "xz" if IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE_XZ

config IMAGE_ROOT_SQUASHFS_BLOCK_SIZE
	string
	default "128k"
	prompt "Block size"
	help
	  This allows the compression data block size to be selected, both "K" and "M"
	  postfixes are supported.

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

endif