blob: b0bd02539eeaed90f98e76c89b7093f82f55cbbc [file] [log] [blame]
Patrick Delaunaydc280602017-01-27 11:00:35 +01001
2menu "Partition Types"
3
4config PARTITIONS
AKASHI Takahiro32025562022-04-19 10:01:58 +09005 bool
Patrick Delaunaydc280602017-01-27 11:00:35 +01006 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
Simon Glassd202cce2022-03-11 12:10:01 -070021config SPL_PARTITIONS
AKASHI Takahiro32025562022-04-19 10:01:58 +090022 bool
Simon Glassd202cce2022-03-11 12:10:01 -070023 select SPL_SPRINTF
24 select SPL_STRTO
25 help
26 Enable this for base partition support in SPL. The required
Simon Glass537075b2022-08-11 19:34:40 -060027 partition table types shold be enabled separately. This adds a
Simon Glassd202cce2022-03-11 12:10:01 -070028 small amount of size to SPL, typically 500 bytes.
29
30config TPL_PARTITIONS
AKASHI Takahiro32025562022-04-19 10:01:58 +090031 bool
Simon Glassd202cce2022-03-11 12:10:01 -070032 select TPL_SPRINTF
33 select TPL_STRTO
34 help
Simon Glass537075b2022-08-11 19:34:40 -060035 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.
Simon Glassd202cce2022-03-11 12:10:01 -070038
Patrick Delaunayc4bbbec2017-01-27 11:00:36 +010039config MAC_PARTITION
40 bool "Enable Apple's MacOS partition table"
AKASHI Takahiro32025562022-04-19 10:01:58 +090041 select PARTITIONS
Patrick Delaunayc4bbbec2017-01-27 11:00:36 +010042 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"
AKASHI Takahiro32025562022-04-19 10:01:58 +090048 depends on SPL
Patrick Delaunayc4bbbec2017-01-27 11:00:36 +010049 default y if MAC_PARTITION
AKASHI Takahiro32025562022-04-19 10:01:58 +090050 select SPL_PARTITIONS
Patrick Delaunayc4bbbec2017-01-27 11:00:36 +010051
Svyatoslav Ryhelf19eb7c2024-07-31 11:22:54 +030052config 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
Patrick Delaunayf7e07722017-01-27 11:00:37 +010062config DOS_PARTITION
63 bool "Enable MS Dos partition table"
Jonas Karlman0d53f322023-07-11 22:37:30 +000064 default y if BOOT_DEFAULTS
Tom Rinifef2bd12017-03-14 11:08:11 -040065 default y if x86 || CMD_FAT || USB_STORAGE
AKASHI Takahiro32025562022-04-19 10:01:58 +090066 select PARTITIONS
Patrick Delaunayf7e07722017-01-27 11:00:37 +010067 help
68 traditional on the Intel architecture, USB sticks, etc.
69
70config SPL_DOS_PARTITION
71 bool "Enable MS Dos partition table for SPL"
AKASHI Takahiro32025562022-04-19 10:01:58 +090072 depends on SPL
Pali Rohár3c5ce032022-05-24 10:58:42 +020073 default n if ARCH_MVEBU
Andre Przywara3130df52020-02-20 17:51:14 +000074 default n if ARCH_SUNXI
Patrick Delaunayf7e07722017-01-27 11:00:37 +010075 default y if DOS_PARTITION
AKASHI Takahiro32025562022-04-19 10:01:58 +090076 select SPL_PARTITIONS
Patrick Delaunayf7e07722017-01-27 11:00:37 +010077
Patrick Delaunay21d3bce2017-01-27 11:00:38 +010078config ISO_PARTITION
79 bool "Enable ISO partition table"
Jonas Karlman0d53f322023-07-11 22:37:30 +000080 default y if BOOT_DEFAULTS
Trevor Woerner513f6402020-05-06 08:02:41 -040081 default y if MIPS || ARCH_TEGRA
AKASHI Takahiro32025562022-04-19 10:01:58 +090082 select PARTITIONS
Patrick Delaunay21d3bce2017-01-27 11:00:38 +010083
84config SPL_ISO_PARTITION
85 bool "Enable ISO partition table for SPL"
AKASHI Takahiro32025562022-04-19 10:01:58 +090086 depends on SPL
87 select SPL_PARTITIONS
Patrick Delaunay21d3bce2017-01-27 11:00:38 +010088
Patrick Delaunay1aa32a82017-01-27 11:00:39 +010089config AMIGA_PARTITION
90 bool "Enable AMIGA partition table"
AKASHI Takahiro32025562022-04-19 10:01:58 +090091 select PARTITIONS
Patrick Delaunay1aa32a82017-01-27 11:00:39 +010092 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"
AKASHI Takahiro32025562022-04-19 10:01:58 +090098 depends on SPL
Patrick Delaunay1aa32a82017-01-27 11:00:39 +010099 default y if AMIGA_PARTITION
AKASHI Takahiro32025562022-04-19 10:01:58 +0900100 select SPL_PARTITIONS
Patrick Delaunay1aa32a82017-01-27 11:00:39 +0100101
Patrick Delaunay8a4f2bd2017-01-27 11:00:41 +0100102config EFI_PARTITION
103 bool "Enable EFI GPT partition table"
Jonas Karlman0d53f322023-07-11 22:37:30 +0000104 default y if BOOT_DEFAULTS
Trevor Woerner513f6402020-05-06 08:02:41 -0400105 default y if ARCH_TEGRA
AKASHI Takahiro32025562022-04-19 10:01:58 +0900106 select PARTITIONS
Adam Ford70c8f052018-02-06 12:14:28 -0600107 select LIB_UUID
Patrick Delaunay8a4f2bd2017-01-27 11:00:41 +0100108 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
Maxime Ripard14210792017-11-14 20:50:04 +0100114config EFI_PARTITION_ENTRIES_NUMBERS
115 int "Number of the EFI partition entries"
116 depends on EFI_PARTITION
Maxime Ripard03252d42017-11-14 21:07:51 +0100117 default 56 if ARCH_SUNXI
Maxime Ripard14210792017-11-14 20:50:04 +0100118 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
Philipp Tomsicha3da0e92017-03-01 21:10:39 +0100128config EFI_PARTITION_ENTRIES_OFF
Anand Moon6c368f42024-06-23 23:10:21 +0530129 int "Offset (in bytes) of the EFI partition entries"
Philipp Tomsicha3da0e92017-03-01 21:10:39 +0100130 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
Patrick Delaunay8a4f2bd2017-01-27 11:00:41 +0100141config SPL_EFI_PARTITION
142 bool "Enable EFI GPT partition table for SPL"
AKASHI Takahiro32025562022-04-19 10:01:58 +0900143 depends on SPL
Pali Rohár3c5ce032022-05-24 10:58:42 +0200144 default n if ARCH_MVEBU
Andre Przywara3130df52020-02-20 17:51:14 +0000145 default n if ARCH_SUNXI
Patrick Delaunay8a4f2bd2017-01-27 11:00:41 +0100146 default y if EFI_PARTITION
AKASHI Takahiro32025562022-04-19 10:01:58 +0900147 select SPL_PARTITIONS
Patrick Delaunay8a4f2bd2017-01-27 11:00:41 +0100148
Patrick Delaunay73287092017-01-27 11:00:42 +0100149config PARTITION_UUIDS
150 bool "Enable support of UUID for partition"
151 depends on PARTITIONS
Jonas Karlman0d53f322023-07-11 22:37:30 +0000152 default y if BOOT_DEFAULTS
Patrick Delaunay73287092017-01-27 11:00:42 +0100153 default y if EFI_PARTITION
Adam Ford70c8f052018-02-06 12:14:28 -0600154 select LIB_UUID
Patrick Delaunay73287092017-01-27 11:00:42 +0100155 help
156 Activate the configuration of UUID for partition
157
158config SPL_PARTITION_UUIDS
159 bool "Enable support of UUID for partition in SPL"
AKASHI Takahiro32025562022-04-19 10:01:58 +0900160 depends on SPL_PARTITIONS
Patrick Delaunay73287092017-01-27 11:00:42 +0100161 default y if SPL_EFI_PARTITION
Simon Glass8090d8d2023-02-22 09:34:11 -0700162 select SPL_LIB_UUID
Patrick Delaunay73287092017-01-27 11:00:42 +0100163
Patrick Delaunay9ea13db2017-01-27 11:00:43 +0100164config PARTITION_TYPE_GUID
165 bool "Enable support of GUID for partition type"
Patrick Delaunay9ea13db2017-01-27 11:00:43 +0100166 depends on EFI_PARTITION
167 help
168 Activate the configuration of GUID type
169 for EFI partition
170
Simon Glass8090d8d2023-02-22 09:34:11 -0700171config 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
Patrick Delaunaydc280602017-01-27 11:00:35 +0100178endmenu