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