blob: 13700322e976acd52e4eb4959168359d93a9ff37 [file] [log] [blame]
Patrick Delaunaye274ef62017-01-27 11:00:35 +01001
2menu "Partition Types"
3
4config PARTITIONS
5 bool "Enable Partition Labels (disklabels) support"
6 default y
7 help
8 Partition Labels (disklabels) Supported:
9 Zero or more of the following:
10 - CONFIG_MAC_PARTITION Apple's MacOS partition table.
11 - CONFIG_DOS_PARTITION MS Dos partition table, traditional on the
12 Intel architecture, USB sticks, etc.
13 - CONFIG_ISO_PARTITION ISO partition table, used on CDROM etc.
14 - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the
15 bootloader. Note 2TB partition limit; see
16 disk/part_efi.c
17 - CONFIG_MTD_PARTITIONS Memory Technology Device partition table.
18 If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI)
19 you must configure support for at least one non-MTD partition type
20 as well.
21
Simon Glass88ca8e22022-03-11 12:10:01 -070022config SPL_PARTITIONS
23 bool "Enable Partition Labels (disklabels) support in SPL"
24 default y if PARTITIONS
25 select SPL_SPRINTF
26 select SPL_STRTO
27 help
28 Enable this for base partition support in SPL. The required
29 partition table types shold be enabled separately. This add a
30 small amount of size to SPL, typically 500 bytes.
31
32config TPL_PARTITIONS
33 bool "Enable Partition Labels (disklabels) support in TPL"
34 default y if PARTITIONS
35 select TPL_SPRINTF
36 select TPL_STRTO
37 help
38 Enable this for base partition support in SPL. The required
39 partition table types shold be enabled separately. This add a
40 small amount of size to SPL, typically 500 bytes.
41
Patrick Delaunayf18fa312017-01-27 11:00:36 +010042config MAC_PARTITION
43 bool "Enable Apple's MacOS partition table"
44 depends on PARTITIONS
Patrick Delaunayf18fa312017-01-27 11:00:36 +010045 help
46 Say Y here if you would like to use device under U-Boot which
47 were partitioned on a Macintosh.
48
49config SPL_MAC_PARTITION
50 bool "Enable Apple's MacOS partition table for SPL"
51 depends on SPL && PARTITIONS
52 default y if MAC_PARTITION
53
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010054config DOS_PARTITION
55 bool "Enable MS Dos partition table"
56 depends on PARTITIONS
57 default y if DISTRO_DEFAULTS
Tom Rini936478e2017-03-14 11:08:11 -040058 default y if x86 || CMD_FAT || USB_STORAGE
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010059 help
60 traditional on the Intel architecture, USB sticks, etc.
61
62config SPL_DOS_PARTITION
63 bool "Enable MS Dos partition table for SPL"
64 depends on SPL && PARTITIONS
Andre Przywara48313fe2020-02-20 17:51:14 +000065 default n if ARCH_SUNXI
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010066 default y if DOS_PARTITION
67
Patrick Delaunay1acc0082017-01-27 11:00:38 +010068config ISO_PARTITION
69 bool "Enable ISO partition table"
70 depends on PARTITIONS
71 default y if DISTRO_DEFAULTS
Trevor Woerner18138ab2020-05-06 08:02:41 -040072 default y if MIPS || ARCH_TEGRA
Patrick Delaunay1acc0082017-01-27 11:00:38 +010073
74config SPL_ISO_PARTITION
75 bool "Enable ISO partition table for SPL"
76 depends on SPL && PARTITIONS
Patrick Delaunay1acc0082017-01-27 11:00:38 +010077
Patrick Delaunay863c5b62017-01-27 11:00:39 +010078config AMIGA_PARTITION
79 bool "Enable AMIGA partition table"
80 depends on PARTITIONS
81 help
82 Say Y here if you would like to use device under U-Boot which
83 were partitioned under AmigaOS.
84
85config SPL_AMIGA_PARTITION
86 bool "Enable AMIGA partition table for SPL"
87 depends on SPL && PARTITIONS
88 default y if AMIGA_PARTITION
89
Patrick Delaunaybd42a942017-01-27 11:00:41 +010090config EFI_PARTITION
91 bool "Enable EFI GPT partition table"
92 depends on PARTITIONS
93 default y if DISTRO_DEFAULTS
Trevor Woerner18138ab2020-05-06 08:02:41 -040094 default y if ARCH_TEGRA
Adam Forda451bc22018-02-06 12:14:28 -060095 select LIB_UUID
Patrick Delaunaybd42a942017-01-27 11:00:41 +010096 help
97 Say Y here if you would like to use device under U-Boot which
98 were partitioned using EFI GPT.
99 common when EFI is the bootloader. Note 2TB partition limit;
100 see disk/part_efi.c
101
Maxime Ripard4ce52192017-11-14 20:50:04 +0100102config EFI_PARTITION_ENTRIES_NUMBERS
103 int "Number of the EFI partition entries"
104 depends on EFI_PARTITION
Maxime Ripard5dc02562017-11-14 21:07:51 +0100105 default 56 if ARCH_SUNXI
Maxime Ripard4ce52192017-11-14 20:50:04 +0100106 default 128
107 help
108 Specify the number of partition entries in the GPT. This is
109 meant to allow less than the standard specifies for devices
110 that might need to place their first-stage bootloader in the
111 middle of a regular GPT.
112
113 If unsure, leave at 128 entries, which is the standard
114 number.
115
Philipp Tomsich02e43532017-03-01 21:10:39 +0100116config EFI_PARTITION_ENTRIES_OFF
117 int "Offset (in bytes) of the EFI partition entries"
118 depends on EFI_PARTITION
119 default 0
120 help
121 Specify an earliest location (in bytes) where the partition
122 entries may be located. This is meant to allow "punching a
123 hole into a device" to create a gap for an SPL, its payload
124 and the U-Boot environment.
125
126 If unsure, leave at 0 (which will locate the partition
127 entries at the first possible LBA following the GPT header).
128
Patrick Delaunaybd42a942017-01-27 11:00:41 +0100129config SPL_EFI_PARTITION
130 bool "Enable EFI GPT partition table for SPL"
131 depends on SPL && PARTITIONS
Andre Przywara48313fe2020-02-20 17:51:14 +0000132 default n if ARCH_SUNXI
Patrick Delaunaybd42a942017-01-27 11:00:41 +0100133 default y if EFI_PARTITION
134
Patrick Delaunayb331cd62017-01-27 11:00:42 +0100135config PARTITION_UUIDS
136 bool "Enable support of UUID for partition"
137 depends on PARTITIONS
138 default y if DISTRO_DEFAULTS
139 default y if EFI_PARTITION
Adam Forda451bc22018-02-06 12:14:28 -0600140 select LIB_UUID
Patrick Delaunayb331cd62017-01-27 11:00:42 +0100141 help
142 Activate the configuration of UUID for partition
143
144config SPL_PARTITION_UUIDS
145 bool "Enable support of UUID for partition in SPL"
146 depends on SPL && PARTITIONS
147 default y if SPL_EFI_PARTITION
148
Patrick Delaunayaed8fda2017-01-27 11:00:43 +0100149config PARTITION_TYPE_GUID
150 bool "Enable support of GUID for partition type"
151 depends on PARTITIONS
152 depends on EFI_PARTITION
153 help
154 Activate the configuration of GUID type
155 for EFI partition
156
Patrick Delaunaye274ef62017-01-27 11:00:35 +0100157endmenu