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 |
Alex Kiernan | 236fc69 | 2018-04-19 04:32:57 +0000 | [diff] [blame] | 7 | select SPL_SPRINTF if SPL |
| 8 | select TPL_SPRINTF if TPL |
| 9 | select SPL_STRTO if SPL |
| 10 | select TPL_STRTO if TPL |
Patrick Delaunay | dc28060 | 2017-01-27 11:00:35 +0100 | [diff] [blame] | 11 | help |
| 12 | Partition Labels (disklabels) Supported: |
| 13 | Zero or more of the following: |
| 14 | - CONFIG_MAC_PARTITION Apple's MacOS partition table. |
| 15 | - CONFIG_DOS_PARTITION MS Dos partition table, traditional on the |
| 16 | Intel architecture, USB sticks, etc. |
| 17 | - CONFIG_ISO_PARTITION ISO partition table, used on CDROM etc. |
| 18 | - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the |
| 19 | bootloader. Note 2TB partition limit; see |
| 20 | disk/part_efi.c |
| 21 | - CONFIG_MTD_PARTITIONS Memory Technology Device partition table. |
| 22 | If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI) |
| 23 | you must configure support for at least one non-MTD partition type |
| 24 | as well. |
| 25 | |
Patrick Delaunay | c4bbbec | 2017-01-27 11:00:36 +0100 | [diff] [blame] | 26 | config MAC_PARTITION |
| 27 | bool "Enable Apple's MacOS partition table" |
| 28 | depends on PARTITIONS |
Patrick Delaunay | c4bbbec | 2017-01-27 11:00:36 +0100 | [diff] [blame] | 29 | help |
| 30 | Say Y here if you would like to use device under U-Boot which |
| 31 | were partitioned on a Macintosh. |
| 32 | |
| 33 | config SPL_MAC_PARTITION |
| 34 | bool "Enable Apple's MacOS partition table for SPL" |
| 35 | depends on SPL && PARTITIONS |
| 36 | default y if MAC_PARTITION |
| 37 | |
Patrick Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 38 | config DOS_PARTITION |
| 39 | bool "Enable MS Dos partition table" |
| 40 | depends on PARTITIONS |
| 41 | default y if DISTRO_DEFAULTS |
Tom Rini | fef2bd1 | 2017-03-14 11:08:11 -0400 | [diff] [blame] | 42 | default y if x86 || CMD_FAT || USB_STORAGE |
Patrick Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 43 | help |
| 44 | traditional on the Intel architecture, USB sticks, etc. |
| 45 | |
| 46 | config SPL_DOS_PARTITION |
| 47 | bool "Enable MS Dos partition table for SPL" |
| 48 | depends on SPL && PARTITIONS |
Andre Przywara | 3130df5 | 2020-02-20 17:51:14 +0000 | [diff] [blame] | 49 | default n if ARCH_SUNXI |
Patrick Delaunay | f7e0772 | 2017-01-27 11:00:37 +0100 | [diff] [blame] | 50 | default y if DOS_PARTITION |
| 51 | |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 52 | config ISO_PARTITION |
| 53 | bool "Enable ISO partition table" |
| 54 | depends on PARTITIONS |
| 55 | default y if DISTRO_DEFAULTS |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame^] | 56 | default y if MIPS || ARCH_TEGRA |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 57 | |
| 58 | config SPL_ISO_PARTITION |
| 59 | bool "Enable ISO partition table for SPL" |
| 60 | depends on SPL && PARTITIONS |
Patrick Delaunay | 21d3bce | 2017-01-27 11:00:38 +0100 | [diff] [blame] | 61 | |
Patrick Delaunay | 1aa32a8 | 2017-01-27 11:00:39 +0100 | [diff] [blame] | 62 | config AMIGA_PARTITION |
| 63 | bool "Enable AMIGA partition table" |
| 64 | depends on PARTITIONS |
| 65 | help |
| 66 | Say Y here if you would like to use device under U-Boot which |
| 67 | were partitioned under AmigaOS. |
| 68 | |
| 69 | config SPL_AMIGA_PARTITION |
| 70 | bool "Enable AMIGA partition table for SPL" |
| 71 | depends on SPL && PARTITIONS |
| 72 | default y if AMIGA_PARTITION |
| 73 | |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 74 | config EFI_PARTITION |
| 75 | bool "Enable EFI GPT partition table" |
| 76 | depends on PARTITIONS |
| 77 | default y if DISTRO_DEFAULTS |
Trevor Woerner | 513f640 | 2020-05-06 08:02:41 -0400 | [diff] [blame^] | 78 | default y if ARCH_TEGRA |
Adam Ford | 70c8f05 | 2018-02-06 12:14:28 -0600 | [diff] [blame] | 79 | select LIB_UUID |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 80 | help |
| 81 | Say Y here if you would like to use device under U-Boot which |
| 82 | were partitioned using EFI GPT. |
| 83 | common when EFI is the bootloader. Note 2TB partition limit; |
| 84 | see disk/part_efi.c |
| 85 | |
Maxime Ripard | 1421079 | 2017-11-14 20:50:04 +0100 | [diff] [blame] | 86 | config EFI_PARTITION_ENTRIES_NUMBERS |
| 87 | int "Number of the EFI partition entries" |
| 88 | depends on EFI_PARTITION |
Maxime Ripard | 03252d4 | 2017-11-14 21:07:51 +0100 | [diff] [blame] | 89 | default 56 if ARCH_SUNXI |
Maxime Ripard | 1421079 | 2017-11-14 20:50:04 +0100 | [diff] [blame] | 90 | default 128 |
| 91 | help |
| 92 | Specify the number of partition entries in the GPT. This is |
| 93 | meant to allow less than the standard specifies for devices |
| 94 | that might need to place their first-stage bootloader in the |
| 95 | middle of a regular GPT. |
| 96 | |
| 97 | If unsure, leave at 128 entries, which is the standard |
| 98 | number. |
| 99 | |
Philipp Tomsich | a3da0e9 | 2017-03-01 21:10:39 +0100 | [diff] [blame] | 100 | config EFI_PARTITION_ENTRIES_OFF |
| 101 | int "Offset (in bytes) of the EFI partition entries" |
| 102 | depends on EFI_PARTITION |
| 103 | default 0 |
| 104 | help |
| 105 | Specify an earliest location (in bytes) where the partition |
| 106 | entries may be located. This is meant to allow "punching a |
| 107 | hole into a device" to create a gap for an SPL, its payload |
| 108 | and the U-Boot environment. |
| 109 | |
| 110 | If unsure, leave at 0 (which will locate the partition |
| 111 | entries at the first possible LBA following the GPT header). |
| 112 | |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 113 | config SPL_EFI_PARTITION |
| 114 | bool "Enable EFI GPT partition table for SPL" |
| 115 | depends on SPL && PARTITIONS |
Andre Przywara | 3130df5 | 2020-02-20 17:51:14 +0000 | [diff] [blame] | 116 | default n if ARCH_SUNXI |
Patrick Delaunay | 8a4f2bd | 2017-01-27 11:00:41 +0100 | [diff] [blame] | 117 | default y if EFI_PARTITION |
| 118 | |
Patrick Delaunay | 7328709 | 2017-01-27 11:00:42 +0100 | [diff] [blame] | 119 | config PARTITION_UUIDS |
| 120 | bool "Enable support of UUID for partition" |
| 121 | depends on PARTITIONS |
| 122 | default y if DISTRO_DEFAULTS |
| 123 | default y if EFI_PARTITION |
Adam Ford | 70c8f05 | 2018-02-06 12:14:28 -0600 | [diff] [blame] | 124 | select LIB_UUID |
Patrick Delaunay | 7328709 | 2017-01-27 11:00:42 +0100 | [diff] [blame] | 125 | help |
| 126 | Activate the configuration of UUID for partition |
| 127 | |
| 128 | config SPL_PARTITION_UUIDS |
| 129 | bool "Enable support of UUID for partition in SPL" |
| 130 | depends on SPL && PARTITIONS |
| 131 | default y if SPL_EFI_PARTITION |
| 132 | |
Patrick Delaunay | 9ea13db | 2017-01-27 11:00:43 +0100 | [diff] [blame] | 133 | config PARTITION_TYPE_GUID |
| 134 | bool "Enable support of GUID for partition type" |
| 135 | depends on PARTITIONS |
| 136 | depends on EFI_PARTITION |
| 137 | help |
| 138 | Activate the configuration of GUID type |
| 139 | for EFI partition |
| 140 | |
Patrick Delaunay | dc28060 | 2017-01-27 11:00:35 +0100 | [diff] [blame] | 141 | endmenu |