]> git.ipfire.org Git - thirdparty/u-boot.git/blame - disk/Kconfig
Correct SPL use of PARTITION_TYPE_GUID
[thirdparty/u-boot.git] / disk / Kconfig
CommitLineData
e274ef6b
PD
1
2menu "Partition Types"
3
4config PARTITIONS
3fb6fa7a 5 bool
e274ef6b
PD
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
88ca8e26 21config SPL_PARTITIONS
3fb6fa7a 22 bool
88ca8e26
SG
23 select SPL_SPRINTF
24 select SPL_STRTO
25 help
26 Enable this for base partition support in SPL. The required
e7b1018d 27 partition table types shold be enabled separately. This adds a
88ca8e26
SG
28 small amount of size to SPL, typically 500 bytes.
29
30config TPL_PARTITIONS
3fb6fa7a 31 bool
88ca8e26
SG
32 select TPL_SPRINTF
33 select TPL_STRTO
34 help
e7b1018d
SG
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.
88ca8e26 38
f18fa31c
PD
39config MAC_PARTITION
40 bool "Enable Apple's MacOS partition table"
3fb6fa7a 41 select PARTITIONS
f18fa31c
PD
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"
3fb6fa7a 48 depends on SPL
f18fa31c 49 default y if MAC_PARTITION
3fb6fa7a 50 select SPL_PARTITIONS
f18fa31c 51
b0cf7339
PD
52config DOS_PARTITION
53 bool "Enable MS Dos partition table"
b0cf7339 54 default y if DISTRO_DEFAULTS
936478e7 55 default y if x86 || CMD_FAT || USB_STORAGE
3fb6fa7a 56 select PARTITIONS
b0cf7339
PD
57 help
58 traditional on the Intel architecture, USB sticks, etc.
59
60config SPL_DOS_PARTITION
61 bool "Enable MS Dos partition table for SPL"
3fb6fa7a 62 depends on SPL
35ed176a 63 default n if ARCH_MVEBU
48313fe5 64 default n if ARCH_SUNXI
b0cf7339 65 default y if DOS_PARTITION
3fb6fa7a 66 select SPL_PARTITIONS
b0cf7339 67
1acc0087
PD
68config ISO_PARTITION
69 bool "Enable ISO partition table"
1acc0087 70 default y if DISTRO_DEFAULTS
18138ab2 71 default y if MIPS || ARCH_TEGRA
3fb6fa7a 72 select PARTITIONS
1acc0087
PD
73
74config SPL_ISO_PARTITION
75 bool "Enable ISO partition table for SPL"
3fb6fa7a
AT
76 depends on SPL
77 select SPL_PARTITIONS
1acc0087 78
863c5b6c
PD
79config AMIGA_PARTITION
80 bool "Enable AMIGA partition table"
3fb6fa7a 81 select PARTITIONS
863c5b6c
PD
82 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"
3fb6fa7a 88 depends on SPL
863c5b6c 89 default y if AMIGA_PARTITION
3fb6fa7a 90 select SPL_PARTITIONS
863c5b6c 91
bd42a942
PD
92config EFI_PARTITION
93 bool "Enable EFI GPT partition table"
bd42a942 94 default y if DISTRO_DEFAULTS
18138ab2 95 default y if ARCH_TEGRA
3fb6fa7a 96 select PARTITIONS
a451bc27 97 select LIB_UUID
bd42a942
PD
98 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
4ce52197
MR
104config EFI_PARTITION_ENTRIES_NUMBERS
105 int "Number of the EFI partition entries"
106 depends on EFI_PARTITION
5dc0256d 107 default 56 if ARCH_SUNXI
4ce52197
MR
108 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
02e43537
PT
118config 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
bd42a942
PD
131config SPL_EFI_PARTITION
132 bool "Enable EFI GPT partition table for SPL"
3fb6fa7a 133 depends on SPL
35ed176a 134 default n if ARCH_MVEBU
48313fe5 135 default n if ARCH_SUNXI
bd42a942 136 default y if EFI_PARTITION
3fb6fa7a 137 select SPL_PARTITIONS
bd42a942 138
b331cd62
PD
139config 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
a451bc27 144 select LIB_UUID
b331cd62
PD
145 help
146 Activate the configuration of UUID for partition
147
148config SPL_PARTITION_UUIDS
149 bool "Enable support of UUID for partition in SPL"
3fb6fa7a 150 depends on SPL_PARTITIONS
b331cd62
PD
151 default y if SPL_EFI_PARTITION
152
aed8fdaa
PD
153config PARTITION_TYPE_GUID
154 bool "Enable support of GUID for partition type"
aed8fdaa
PD
155 depends on EFI_PARTITION
156 help
157 Activate the configuration of GUID type
158 for EFI partition
159
e274ef6b 160endmenu