xref: /OK3568_Linux_fs/u-boot/disk/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1
2menu "Partition Types"
3
4config PARTITIONS
5	bool "Enable Partition Labels (disklabels) support"
6	default y
7	select SPL_SPRINTF if SPL
8	select TPL_SPRINTF if TPL
9	select SPL_STRTO if SPL
10	select TPL_STRTO if TPL
11	help
12	  Partition Labels (disklabels) Supported:
13	  Zero or more of the following:
14	  - CONFIG_MAC_PARTITION   Apple's MacOS partition table.
15	  - CONFIG_DOS_PARTITION   MS Dos partition table, traditional on the
16	                           Intel architecture, USB sticks, etc.
17	  - CONFIG_ISO_PARTITION   ISO partition table, used on CDROM etc.
18	  - CONFIG_EFI_PARTITION   GPT partition table, common when EFI is the
19	                           bootloader.  Note 2TB partition limit; see
20	                           disk/part_efi.c
21	  - CONFIG_MTD_PARTITIONS  Memory Technology Device partition table.
22	  If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI)
23	  you must configure support for at least one non-MTD partition type
24	  as well.
25
26config MAC_PARTITION
27	bool "Enable Apple's MacOS partition table"
28	depends on PARTITIONS
29	help
30	  Say Y here if you would like to use device under U-Boot which
31	  were partitioned on a Macintosh.
32
33config SPL_MAC_PARTITION
34	bool "Enable Apple's MacOS partition table for SPL"
35	depends on SPL && PARTITIONS
36	default y if MAC_PARTITION
37
38config DOS_PARTITION
39	bool "Enable MS Dos partition table"
40	depends on PARTITIONS
41	default y if DISTRO_DEFAULTS
42	default y if x86 || CMD_FAT || USB_STORAGE
43	help
44	  traditional on the Intel architecture, USB sticks, etc.
45
46config SPL_DOS_PARTITION
47	bool "Enable MS Dos partition table for SPL"
48	depends on SPL && PARTITIONS
49	default y if DOS_PARTITION
50
51config ISO_PARTITION
52	bool "Enable ISO partition table"
53	depends on PARTITIONS
54	default y if DISTRO_DEFAULTS
55	default y if MIPS || TEGRA
56
57config SPL_ISO_PARTITION
58	bool "Enable ISO partition table for SPL"
59	depends on SPL && PARTITIONS
60	default y if ISO_PARTITION
61
62config AMIGA_PARTITION
63	bool "Enable AMIGA partition table"
64	depends on PARTITIONS
65	help
66	  Say Y here if you would like to use device under U-Boot which
67	  were partitioned under AmigaOS.
68
69config SPL_AMIGA_PARTITION
70	bool "Enable AMIGA partition table for SPL"
71	depends on SPL && PARTITIONS
72	default y if AMIGA_PARTITION
73
74config EFI_PARTITION
75	bool "Enable EFI GPT partition table"
76	depends on PARTITIONS
77	default y if DISTRO_DEFAULTS
78	default y if TEGRA
79	help
80	  Say Y here if you would like to use device under U-Boot which
81	  were partitioned using EFI GPT.
82	  common when EFI is the bootloader.  Note 2TB partition limit;
83	  see disk/part_efi.c
84
85config EFI_PARTITION_ENTRIES_NUMBERS
86	int "Number of the EFI partition entries"
87	depends on EFI_PARTITION
88	default 56 if ARCH_SUNXI
89	default 128
90	help
91	  Specify the number of partition entries in the GPT. This is
92	  meant to allow less than the standard specifies for devices
93	  that might need to place their first-stage bootloader in the
94	  middle of a regular GPT.
95
96	  If unsure, leave at 128 entries, which is the standard
97	  number.
98
99config EFI_PARTITION_ENTRIES_OFF
100        int "Offset (in bytes) of the EFI partition entries"
101	depends on EFI_PARTITION
102	default 0
103	help
104	  Specify an earliest location (in bytes) where the partition
105	  entries may be located. This is meant to allow "punching a
106	  hole into a device" to create a gap for an SPL, its payload
107	  and the U-Boot environment.
108
109	  If unsure, leave at 0 (which will locate the partition
110	  entries at the first possible LBA following the GPT header).
111
112config SPL_EFI_PARTITION
113	bool "Enable EFI GPT partition table for SPL"
114	depends on  SPL && PARTITIONS
115	default y if EFI_PARTITION
116
117config PARTITION_UUIDS
118	bool "Enable support of UUID for partition"
119	depends on PARTITIONS
120	default y if DISTRO_DEFAULTS
121	default y if EFI_PARTITION
122	help
123	  Activate the configuration of UUID for partition
124
125config SPL_PARTITION_UUIDS
126	bool "Enable support of UUID for partition in SPL"
127	depends on SPL && PARTITIONS
128	default y if SPL_EFI_PARTITION
129
130config PARTITION_TYPE_GUID
131	bool "Enable support of GUID for partition type"
132	depends on PARTITIONS
133	depends on EFI_PARTITION
134	help
135	  Activate the configuration of GUID type
136	  for EFI partition
137
138config ENV_PARTITION
139	bool "Enable ENV partition table support"
140	depends on PARTITIONS
141	default y if ENVF
142	help
143	  Say Y here if you would like to use ENV partition table.
144
145config SPL_ENV_PARTITION
146	bool "Enable ENV partition table support in SPL"
147	depends on SPL && PARTITIONS
148	default y if SPL_ENVF
149	help
150	  Say Y here if you would like to use ENV partition table in SPL.
151
152config RKPARM_PARTITION
153	bool "Enable Rockchip parameter partition table"
154	depends on PARTITIONS
155	help
156	  Say Y here if you would like to use device under U-Boot which
157	  were partitioned using Rockchip parameter.
158
159config RKRAM_PARTITION
160	bool "Enable Rockchip ram partition table"
161	depends on PARTITIONS && DM_RAMDISK
162	depends on ROCKCHIP_PRELOADER_ATAGS
163	help
164	  Say Y here if you would like to use device under U-Boot which
165	  were partitioned using Rockchip atags.
166
167config SPL_ROCKCHIP_PARTITION
168	bool "Enable Rockchip partition table for SPL"
169
170endmenu
171