Merge tag 'v2022.04-rc5' into next
[platform/kernel/u-boot.git] / disk / Kconfig
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
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
42 config MAC_PARTITION
43         bool "Enable Apple's MacOS partition table"
44         depends on PARTITIONS
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
54 config DOS_PARTITION
55         bool "Enable MS Dos partition table"
56         depends on PARTITIONS
57         default y if DISTRO_DEFAULTS
58         default y if x86 || CMD_FAT || USB_STORAGE
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
65         default n if ARCH_SUNXI
66         default y if DOS_PARTITION
67
68 config ISO_PARTITION
69         bool "Enable ISO partition table"
70         depends on PARTITIONS
71         default y if DISTRO_DEFAULTS
72         default y if MIPS || ARCH_TEGRA
73
74 config SPL_ISO_PARTITION
75         bool "Enable ISO partition table for SPL"
76         depends on SPL && PARTITIONS
77
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
90 config EFI_PARTITION
91         bool "Enable EFI GPT partition table"
92         depends on PARTITIONS
93         default y if DISTRO_DEFAULTS
94         default y if ARCH_TEGRA
95         select LIB_UUID
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
102 config EFI_PARTITION_ENTRIES_NUMBERS
103         int "Number of the EFI partition entries"
104         depends on EFI_PARTITION
105         default 56 if ARCH_SUNXI
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
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
129 config SPL_EFI_PARTITION
130         bool "Enable EFI GPT partition table for SPL"
131         depends on  SPL && PARTITIONS
132         default n if ARCH_SUNXI
133         default y if EFI_PARTITION
134
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
140         select LIB_UUID
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
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
157 endmenu