blob: c9b9dbaf1a60d0a0c41951eb046372793c312146 [file] [log] [blame]
Patrick Delaunaye274ef62017-01-27 11:00:35 +01001
2menu "Partition Types"
3
4config PARTITIONS
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +09005 bool
Patrick Delaunaye274ef62017-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 Glass88ca8e22022-03-11 12:10:01 -070021config SPL_PARTITIONS
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090022 bool
Simon Glass88ca8e22022-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 Glasse7b10182022-08-11 19:34:40 -060027 partition table types shold be enabled separately. This adds a
Simon Glass88ca8e22022-03-11 12:10:01 -070028 small amount of size to SPL, typically 500 bytes.
29
30config TPL_PARTITIONS
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090031 bool
Simon Glass88ca8e22022-03-11 12:10:01 -070032 select TPL_SPRINTF
33 select TPL_STRTO
34 help
Simon Glasse7b10182022-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 Glass88ca8e22022-03-11 12:10:01 -070038
Patrick Delaunayf18fa312017-01-27 11:00:36 +010039config MAC_PARTITION
40 bool "Enable Apple's MacOS partition table"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090041 select PARTITIONS
Patrick Delaunayf18fa312017-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 Takahiro3fb6fa72022-04-19 10:01:58 +090048 depends on SPL
Patrick Delaunayf18fa312017-01-27 11:00:36 +010049 default y if MAC_PARTITION
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090050 select SPL_PARTITIONS
Patrick Delaunayf18fa312017-01-27 11:00:36 +010051
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010052config DOS_PARTITION
53 bool "Enable MS Dos partition table"
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010054 default y if DISTRO_DEFAULTS
Tom Rini936478e2017-03-14 11:08:11 -040055 default y if x86 || CMD_FAT || USB_STORAGE
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090056 select PARTITIONS
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010057 help
58 traditional on the Intel architecture, USB sticks, etc.
59
60config SPL_DOS_PARTITION
61 bool "Enable MS Dos partition table for SPL"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090062 depends on SPL
Pali Rohár35ed1762022-05-24 10:58:42 +020063 default n if ARCH_MVEBU
Andre Przywara48313fe2020-02-20 17:51:14 +000064 default n if ARCH_SUNXI
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010065 default y if DOS_PARTITION
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090066 select SPL_PARTITIONS
Patrick Delaunayb0cf7332017-01-27 11:00:37 +010067
Patrick Delaunay1acc0082017-01-27 11:00:38 +010068config ISO_PARTITION
69 bool "Enable ISO partition table"
Patrick Delaunay1acc0082017-01-27 11:00:38 +010070 default y if DISTRO_DEFAULTS
Trevor Woerner18138ab2020-05-06 08:02:41 -040071 default y if MIPS || ARCH_TEGRA
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090072 select PARTITIONS
Patrick Delaunay1acc0082017-01-27 11:00:38 +010073
74config SPL_ISO_PARTITION
75 bool "Enable ISO partition table for SPL"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090076 depends on SPL
77 select SPL_PARTITIONS
Patrick Delaunay1acc0082017-01-27 11:00:38 +010078
Patrick Delaunay863c5b62017-01-27 11:00:39 +010079config AMIGA_PARTITION
80 bool "Enable AMIGA partition table"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090081 select PARTITIONS
Patrick Delaunay863c5b62017-01-27 11:00:39 +010082 help
83 Say Y here if you would like to use device under U-Boot which
84 were partitioned under AmigaOS.
85
86config SPL_AMIGA_PARTITION
87 bool "Enable AMIGA partition table for SPL"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090088 depends on SPL
Patrick Delaunay863c5b62017-01-27 11:00:39 +010089 default y if AMIGA_PARTITION
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090090 select SPL_PARTITIONS
Patrick Delaunay863c5b62017-01-27 11:00:39 +010091
Patrick Delaunaybd42a942017-01-27 11:00:41 +010092config EFI_PARTITION
93 bool "Enable EFI GPT partition table"
Patrick Delaunaybd42a942017-01-27 11:00:41 +010094 default y if DISTRO_DEFAULTS
Trevor Woerner18138ab2020-05-06 08:02:41 -040095 default y if ARCH_TEGRA
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +090096 select PARTITIONS
Adam Forda451bc22018-02-06 12:14:28 -060097 select LIB_UUID
Patrick Delaunaybd42a942017-01-27 11:00:41 +010098 help
99 Say Y here if you would like to use device under U-Boot which
100 were partitioned using EFI GPT.
101 common when EFI is the bootloader. Note 2TB partition limit;
102 see disk/part_efi.c
103
Maxime Ripard4ce52192017-11-14 20:50:04 +0100104config EFI_PARTITION_ENTRIES_NUMBERS
105 int "Number of the EFI partition entries"
106 depends on EFI_PARTITION
Maxime Ripard5dc02562017-11-14 21:07:51 +0100107 default 56 if ARCH_SUNXI
Maxime Ripard4ce52192017-11-14 20:50:04 +0100108 default 128
109 help
110 Specify the number of partition entries in the GPT. This is
111 meant to allow less than the standard specifies for devices
112 that might need to place their first-stage bootloader in the
113 middle of a regular GPT.
114
115 If unsure, leave at 128 entries, which is the standard
116 number.
117
Philipp Tomsich02e43532017-03-01 21:10:39 +0100118config EFI_PARTITION_ENTRIES_OFF
119 int "Offset (in bytes) of the EFI partition entries"
120 depends on EFI_PARTITION
121 default 0
122 help
123 Specify an earliest location (in bytes) where the partition
124 entries may be located. This is meant to allow "punching a
125 hole into a device" to create a gap for an SPL, its payload
126 and the U-Boot environment.
127
128 If unsure, leave at 0 (which will locate the partition
129 entries at the first possible LBA following the GPT header).
130
Patrick Delaunaybd42a942017-01-27 11:00:41 +0100131config SPL_EFI_PARTITION
132 bool "Enable EFI GPT partition table for SPL"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +0900133 depends on SPL
Pali Rohár35ed1762022-05-24 10:58:42 +0200134 default n if ARCH_MVEBU
Andre Przywara48313fe2020-02-20 17:51:14 +0000135 default n if ARCH_SUNXI
Patrick Delaunaybd42a942017-01-27 11:00:41 +0100136 default y if EFI_PARTITION
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +0900137 select SPL_PARTITIONS
Patrick Delaunaybd42a942017-01-27 11:00:41 +0100138
Patrick Delaunayb331cd62017-01-27 11:00:42 +0100139config PARTITION_UUIDS
140 bool "Enable support of UUID for partition"
141 depends on PARTITIONS
142 default y if DISTRO_DEFAULTS
143 default y if EFI_PARTITION
Adam Forda451bc22018-02-06 12:14:28 -0600144 select LIB_UUID
Patrick Delaunayb331cd62017-01-27 11:00:42 +0100145 help
146 Activate the configuration of UUID for partition
147
148config SPL_PARTITION_UUIDS
149 bool "Enable support of UUID for partition in SPL"
AKASHI Takahiro3fb6fa72022-04-19 10:01:58 +0900150 depends on SPL_PARTITIONS
Patrick Delaunayb331cd62017-01-27 11:00:42 +0100151 default y if SPL_EFI_PARTITION
152
Patrick Delaunayaed8fda2017-01-27 11:00:43 +0100153config PARTITION_TYPE_GUID
154 bool "Enable support of GUID for partition type"
Patrick Delaunayaed8fda2017-01-27 11:00:43 +0100155 depends on EFI_PARTITION
156 help
157 Activate the configuration of GUID type
158 for EFI partition
159
Patrick Delaunaye274ef62017-01-27 11:00:35 +0100160endmenu