xref: /OK3568_Linux_fs/buildroot/fs/ubi/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_TARGET_ROOTFS_UBI
2	bool "ubi image containing an ubifs/squashfs root filesystem"
3	help
4	  Build an ubi image from the ubifs/squashfs one (with ubinize).
5
6if BR2_TARGET_ROOTFS_UBI
7
8choice
9	prompt "UBI root filesystem"
10	help
11	  Select UBI root filesystem.
12
13config BR2_TARGET_ROOTFS_UBI_UBIFS
14	bool "ubifs"
15	select BR2_TARGET_ROOTFS_UBIFS
16	help
17	  Use ubifs.
18
19config BR2_TARGET_ROOTFS_UBI_SQUASHFS
20	bool "squashfs"
21	select BR2_TARGET_ROOTFS_SQUASHFS
22	help
23	  Use squashfs.
24
25endchoice
26
27config BR2_TARGET_ROOTFS_UBI_MINIOSIZE
28	hex "minimum I/O unit size"
29	default BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE if BR2_TARGET_ROOTFS_UBI_UBIFS
30	default 0x800
31	help
32	  Minimum I/O unit size. The value provided here is passed
33	  to the -m/--min-io-size option of ubinize.
34
35config BR2_TARGET_ROOTFS_UBI_PEBSIZE
36	hex "physical eraseblock size"
37	default 0x20000
38	help
39	  Tells ubinize the physical eraseblock (PEB) size of the
40	  flash chip the ubi image is created for. The value provided
41	  here is passed to the -p/--peb-size option of ubinize.
42
43config BR2_TARGET_ROOTFS_UBI_SUBSIZE
44	int "sub-page size"
45	default 512
46	help
47	  Tells ubinize that the flash supports sub-pages and the
48	  sub-page size. Use 0 if sub-pages are not supported on flash
49	  chip.
50	  The value provided here is passed to the -s/--sub-page-size
51	  option of ubinize.
52
53config BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG
54	bool "Use custom config file"
55	help
56	  Select this option to use a custom ubinize configuration file,
57	  rather than the default configuration used by Buildroot (which
58	  defines a single dynamic volume marked as auto-resize).
59	  Passing a custom ubinize configuration file allows you to
60	  create several volumes, specify volume types, etc.
61
62	  As a convenience, buildroot replaces the string
63	  "BR2_ROOTFS_UBI_PATH" with the path to the built ubi file.
64	  So the volume defined for the root filesystem can specify the
65	  image path as:  image=BR2_ROOTFS_UBI_PATH
66
67	  Buildroot also replaces the string "BINARIES_DIR" with the
68	  value of $(BINARIES_DIR), so that it is possible to reference
69	  other build artefacts (e.g. to include the kernel in a UBI
70	  volume).
71
72config BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE
73	string "Configuration file path"
74	depends on BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG
75	help
76	  Path to the ubinize configuration file.
77
78config BR2_TARGET_ROOTFS_UBI_OPTS
79	string "Additional ubinize options"
80	help
81	  Any additional ubinize options you may want to include.
82
83endif # BR2_TARGET_ROOTFS_UBI
84