Patrick Delaunay | dc28060 | 2017-01-27 11:00:35 +0100 | [diff] [blame] | 1 | |
| 2 | menu "Partition Types" |
| 3 | |
| 4 | config 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 Glass | d202cce | 2022-03-11 12:10:01 -0700 | [diff] [blame] | 22 | config 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 | |
| 32 | config 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 Delaunay | c4bbbec | 2017-01-27 11:00:36 +0100 | [diff] [blame] | 42 | config MAC_PARTITION |
| 43 | bool "Enable Apple's MacOS partition table" |
| 44 | depends on PARTITIONS |
Patrick Delaunay | c4bbbec | 2017-01-27 11:00:36 +0100 | [diff] [blame] | 45 | help |
| 46 | Say Y here if you would like to use device under U-Boot which |
| 47 | were partitioned on a Macintosh. |
| 48 | |
| 49 | config 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 Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 54 | config DOS_PARTITION |
| 55 | bool "Enable MS Dos partition table" |
| 56 | depends on PARTITIONS |
| 57 | default y if DISTRO_DEFAULTS |
Tom Rini | fef2bd1 | 2017-03-14 11:08:11 -0400 | [diff] [blame] | 58 | default y if x86 || CMD_FAT || USB_STORAGE |
Patrick Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 59 | help |
| 60 | traditional on the Intel architecture, USB sticks, etc. |
| 61 | |
| 62 | config SPL_DOS_PARTITION |
| 63 | bool "Enable MS Dos partition table for SPL" |
| 64 | depends on SPL && PARTITIONS |
Andre Przywara | 3130df5 | 2020-02-20 17:51:14 +0000 | [diff] [blame] | 65 | default n if ARCH_SUNXI |
Patrick Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 66 | default y if DOS_PARTITION |
| 67 | |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 68 | config ISO_PARTITION |
| 69 | bool "Enable ISO partition table" |
| 70 | depends on PARTITIONS |
| 71 | default y if DISTRO_DEFAULTS |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame] | 72 | default y if MIPS || ARCH_TEGRA |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 73 | |
| 74 | config SPL_ISO_PARTITION |
| 75 | bool "Enable ISO partition table for SPL" |
| 76 | depends on SPL && PARTITIONS |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 77 | |
Patrick Delaunay | 1aa32a8 | 2017-01-27 11:00:39 +0100 | [diff] [blame] | 78 | config 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 | |
| 85 | config SPL_AMIGA_PARTITION |
| 86 | bool "Enable AMIGA partition table for SPL" |
| 87 | depends on SPL && PARTITIONS |
| 88 | default y if AMIGA_PARTITION |
| 89 | |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 90 | config EFI_PARTITION |
| 91 | bool "Enable EFI GPT partition table" |
| 92 | depends on PARTITIONS |
| 93 | default y if DISTRO_DEFAULTS |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame] | 94 | default y if ARCH_TEGRA |
Adam Ford | 70c8f05 | 2018-02-06 12:14:28 -0600 | [diff] [blame] | 95 | select LIB_UUID |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 96 | 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 Ripard | 1421079 | 2017-11-14 20:50:04 +0100 | [diff] [blame] | 102 | config EFI_PARTITION_ENTRIES_NUMBERS |
| 103 | int "Number of the EFI partition entries" |
| 104 | depends on EFI_PARTITION |
Maxime Ripard | 03252d4 | 2017-11-14 21:07:51 +0100 | [diff] [blame] | 105 | default 56 if ARCH_SUNXI |
Maxime Ripard | 1421079 | 2017-11-14 20:50:04 +0100 | [diff] [blame] | 106 | 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 Tomsich | a3da0e9 | 2017-03-01 21:10:39 +0100 | [diff] [blame] | 116 | config 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 Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 129 | config SPL_EFI_PARTITION |
| 130 | bool "Enable EFI GPT partition table for SPL" |
| 131 | depends on SPL && PARTITIONS |
Andre Przywara | 3130df5 | 2020-02-20 17:51:14 +0000 | [diff] [blame] | 132 | default n if ARCH_SUNXI |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 133 | default y if EFI_PARTITION |
| 134 | |
Patrick Delaunay | 7328709 | 2017-01-27 11:00:42 +0100 | [diff] [blame] | 135 | config 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 Ford | 70c8f05 | 2018-02-06 12:14:28 -0600 | [diff] [blame] | 140 | select LIB_UUID |
Patrick Delaunay | 7328709 | 2017-01-27 11:00:42 +0100 | [diff] [blame] | 141 | help |
| 142 | Activate the configuration of UUID for partition |
| 143 | |
| 144 | config 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 Delaunay | 9ea13db | 2017-01-27 11:00:43 +0100 | [diff] [blame] | 149 | config 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 Delaunay | dc28060 | 2017-01-27 11:00:35 +0100 | [diff] [blame] | 157 | endmenu |