xref: /openbmc/u-boot/disk/Kconfig (revision 4ce52197)
1e274ef6bSPatrick Delaunay
2e274ef6bSPatrick Delaunaymenu "Partition Types"
3e274ef6bSPatrick Delaunay
4e274ef6bSPatrick Delaunayconfig PARTITIONS
5e274ef6bSPatrick Delaunay	bool "Enable Partition Labels (disklabels) support"
6e274ef6bSPatrick Delaunay	default y
7e274ef6bSPatrick Delaunay	help
8e274ef6bSPatrick Delaunay	  Partition Labels (disklabels) Supported:
9e274ef6bSPatrick Delaunay	  Zero or more of the following:
10e274ef6bSPatrick Delaunay	  - CONFIG_MAC_PARTITION   Apple's MacOS partition table.
11e274ef6bSPatrick Delaunay	  - CONFIG_DOS_PARTITION   MS Dos partition table, traditional on the
12e274ef6bSPatrick Delaunay	                           Intel architecture, USB sticks, etc.
13e274ef6bSPatrick Delaunay	  - CONFIG_ISO_PARTITION   ISO partition table, used on CDROM etc.
14e274ef6bSPatrick Delaunay	  - CONFIG_EFI_PARTITION   GPT partition table, common when EFI is the
15e274ef6bSPatrick Delaunay	                           bootloader.  Note 2TB partition limit; see
16e274ef6bSPatrick Delaunay	                           disk/part_efi.c
17e274ef6bSPatrick Delaunay	  - CONFIG_MTD_PARTITIONS  Memory Technology Device partition table.
18e274ef6bSPatrick Delaunay	  If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI)
19e274ef6bSPatrick Delaunay	  you must configure support for at least one non-MTD partition type
20e274ef6bSPatrick Delaunay	  as well.
21e274ef6bSPatrick Delaunay
22f18fa31cSPatrick Delaunayconfig MAC_PARTITION
23f18fa31cSPatrick Delaunay	bool "Enable Apple's MacOS partition table"
24f18fa31cSPatrick Delaunay	depends on PARTITIONS
25f18fa31cSPatrick Delaunay	help
26f18fa31cSPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
27f18fa31cSPatrick Delaunay	  were partitioned on a Macintosh.
28f18fa31cSPatrick Delaunay
29f18fa31cSPatrick Delaunayconfig SPL_MAC_PARTITION
30f18fa31cSPatrick Delaunay	bool "Enable Apple's MacOS partition table for SPL"
31f18fa31cSPatrick Delaunay	depends on SPL && PARTITIONS
32f18fa31cSPatrick Delaunay	default y if MAC_PARTITION
33f18fa31cSPatrick Delaunay
34b0cf7339SPatrick Delaunayconfig DOS_PARTITION
35b0cf7339SPatrick Delaunay	bool "Enable MS Dos partition table"
36b0cf7339SPatrick Delaunay	depends on PARTITIONS
37b0cf7339SPatrick Delaunay	default y if DISTRO_DEFAULTS
38936478e7STom Rini	default y if x86 || CMD_FAT || USB_STORAGE
39b0cf7339SPatrick Delaunay	help
40b0cf7339SPatrick Delaunay	  traditional on the Intel architecture, USB sticks, etc.
41b0cf7339SPatrick Delaunay
42b0cf7339SPatrick Delaunayconfig SPL_DOS_PARTITION
43b0cf7339SPatrick Delaunay	bool "Enable MS Dos partition table for SPL"
44b0cf7339SPatrick Delaunay	depends on SPL && PARTITIONS
45b0cf7339SPatrick Delaunay	default y if DOS_PARTITION
46b0cf7339SPatrick Delaunay
471acc0087SPatrick Delaunayconfig ISO_PARTITION
481acc0087SPatrick Delaunay	bool "Enable ISO partition table"
491acc0087SPatrick Delaunay	depends on PARTITIONS
501acc0087SPatrick Delaunay	default y if DISTRO_DEFAULTS
51936478e7STom Rini	default y if MIPS || TEGRA
521acc0087SPatrick Delaunay
531acc0087SPatrick Delaunayconfig SPL_ISO_PARTITION
541acc0087SPatrick Delaunay	bool "Enable ISO partition table for SPL"
551acc0087SPatrick Delaunay	depends on SPL && PARTITIONS
561acc0087SPatrick Delaunay	default y if ISO_PARTITION
571acc0087SPatrick Delaunay
58863c5b6cSPatrick Delaunayconfig AMIGA_PARTITION
59863c5b6cSPatrick Delaunay	bool "Enable AMIGA partition table"
60863c5b6cSPatrick Delaunay	depends on PARTITIONS
61863c5b6cSPatrick Delaunay	help
62863c5b6cSPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
63863c5b6cSPatrick Delaunay	  were partitioned under AmigaOS.
64863c5b6cSPatrick Delaunay
65863c5b6cSPatrick Delaunayconfig SPL_AMIGA_PARTITION
66863c5b6cSPatrick Delaunay	bool "Enable AMIGA partition table for SPL"
67863c5b6cSPatrick Delaunay	depends on SPL && PARTITIONS
68863c5b6cSPatrick Delaunay	default y if AMIGA_PARTITION
69863c5b6cSPatrick Delaunay
70bd42a942SPatrick Delaunayconfig EFI_PARTITION
71bd42a942SPatrick Delaunay	bool "Enable EFI GPT partition table"
72bd42a942SPatrick Delaunay	depends on PARTITIONS
73bd42a942SPatrick Delaunay	default y if DISTRO_DEFAULTS
74bd42a942SPatrick Delaunay	default y if TEGRA
75bd42a942SPatrick Delaunay	help
76bd42a942SPatrick Delaunay	  Say Y here if you would like to use device under U-Boot which
77bd42a942SPatrick Delaunay	  were partitioned using EFI GPT.
78bd42a942SPatrick Delaunay	  common when EFI is the bootloader.  Note 2TB partition limit;
79bd42a942SPatrick Delaunay	  see disk/part_efi.c
80bd42a942SPatrick Delaunay
81*4ce52197SMaxime Ripardconfig EFI_PARTITION_ENTRIES_NUMBERS
82*4ce52197SMaxime Ripard	int "Number of the EFI partition entries"
83*4ce52197SMaxime Ripard	depends on EFI_PARTITION
84*4ce52197SMaxime Ripard	default 128
85*4ce52197SMaxime Ripard	help
86*4ce52197SMaxime Ripard	  Specify the number of partition entries in the GPT. This is
87*4ce52197SMaxime Ripard	  meant to allow less than the standard specifies for devices
88*4ce52197SMaxime Ripard	  that might need to place their first-stage bootloader in the
89*4ce52197SMaxime Ripard	  middle of a regular GPT.
90*4ce52197SMaxime Ripard
91*4ce52197SMaxime Ripard	  If unsure, leave at 128 entries, which is the standard
92*4ce52197SMaxime Ripard	  number.
93*4ce52197SMaxime Ripard
9402e43537SPhilipp Tomsichconfig EFI_PARTITION_ENTRIES_OFF
9502e43537SPhilipp Tomsich        int "Offset (in bytes) of the EFI partition entries"
9602e43537SPhilipp Tomsich	depends on EFI_PARTITION
9702e43537SPhilipp Tomsich	default 0
9802e43537SPhilipp Tomsich	help
9902e43537SPhilipp Tomsich	  Specify an earliest location (in bytes) where the partition
10002e43537SPhilipp Tomsich	  entries may be located. This is meant to allow "punching a
10102e43537SPhilipp Tomsich	  hole into a device" to create a gap for an SPL, its payload
10202e43537SPhilipp Tomsich	  and the U-Boot environment.
10302e43537SPhilipp Tomsich
10402e43537SPhilipp Tomsich	  If unsure, leave at 0 (which will locate the partition
10502e43537SPhilipp Tomsich	  entries at the first possible LBA following the GPT header).
10602e43537SPhilipp Tomsich
107bd42a942SPatrick Delaunayconfig SPL_EFI_PARTITION
108bd42a942SPatrick Delaunay	bool "Enable EFI GPT partition table for SPL"
109bd42a942SPatrick Delaunay	depends on  SPL && PARTITIONS
110bd42a942SPatrick Delaunay	default y if EFI_PARTITION
111bd42a942SPatrick Delaunay
112b331cd62SPatrick Delaunayconfig PARTITION_UUIDS
113b331cd62SPatrick Delaunay	bool "Enable support of UUID for partition"
114b331cd62SPatrick Delaunay	depends on PARTITIONS
115b331cd62SPatrick Delaunay	default y if DISTRO_DEFAULTS
116b331cd62SPatrick Delaunay	default y if EFI_PARTITION
117b331cd62SPatrick Delaunay	help
118b331cd62SPatrick Delaunay	  Activate the configuration of UUID for partition
119b331cd62SPatrick Delaunay
120b331cd62SPatrick Delaunayconfig SPL_PARTITION_UUIDS
121b331cd62SPatrick Delaunay	bool "Enable support of UUID for partition in SPL"
122b331cd62SPatrick Delaunay	depends on SPL && PARTITIONS
123b331cd62SPatrick Delaunay	default y if SPL_EFI_PARTITION
124b331cd62SPatrick Delaunay
125aed8fdaaSPatrick Delaunayconfig PARTITION_TYPE_GUID
126aed8fdaaSPatrick Delaunay	bool "Enable support of GUID for partition type"
127aed8fdaaSPatrick Delaunay	depends on PARTITIONS
128aed8fdaaSPatrick Delaunay	depends on EFI_PARTITION
129aed8fdaaSPatrick Delaunay	help
130aed8fdaaSPatrick Delaunay	  Activate the configuration of GUID type
131aed8fdaaSPatrick Delaunay	  for EFI partition
132aed8fdaaSPatrick Delaunay
133e274ef6bSPatrick Delaunayendmenu
134