Merge branch 'next'
[platform/kernel/u-boot.git] / disk / Kconfig
1
2 menu "Partition Types"
3
4 config PARTITIONS
5         bool
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
21 config SPL_PARTITIONS
22         bool
23         select SPL_SPRINTF
24         select SPL_STRTO
25         help
26           Enable this for base partition support in SPL. The required
27           partition table types shold be enabled separately. This add a
28           small amount of size to SPL, typically 500 bytes.
29
30 config TPL_PARTITIONS
31         bool
32         select TPL_SPRINTF
33         select TPL_STRTO
34         help
35           Enable this for base partition support in SPL. The required
36           partition table types shold be enabled separately. This add a
37           small amount of size to SPL, typically 500 bytes.
38
39 config MAC_PARTITION
40         bool "Enable Apple's MacOS partition table"
41         select PARTITIONS
42         help
43           Say Y here if you would like to use device under U-Boot which
44           were partitioned on a Macintosh.
45
46 config SPL_MAC_PARTITION
47         bool "Enable Apple's MacOS partition table for SPL"
48         depends on SPL
49         default y if MAC_PARTITION
50         select SPL_PARTITIONS
51
52 config DOS_PARTITION
53         bool "Enable MS Dos partition table"
54         default y if DISTRO_DEFAULTS
55         default y if x86 || CMD_FAT || USB_STORAGE
56         select PARTITIONS
57         help
58           traditional on the Intel architecture, USB sticks, etc.
59
60 config SPL_DOS_PARTITION
61         bool "Enable MS Dos partition table for SPL"
62         depends on SPL
63         default n if ARCH_SUNXI
64         default y if DOS_PARTITION
65         select SPL_PARTITIONS
66
67 config ISO_PARTITION
68         bool "Enable ISO partition table"
69         default y if DISTRO_DEFAULTS
70         default y if MIPS || ARCH_TEGRA
71         select PARTITIONS
72
73 config SPL_ISO_PARTITION
74         bool "Enable ISO partition table for SPL"
75         depends on SPL
76         select SPL_PARTITIONS
77
78 config AMIGA_PARTITION
79         bool "Enable AMIGA partition table"
80         select 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
88         default y if AMIGA_PARTITION
89         select SPL_PARTITIONS
90
91 config EFI_PARTITION
92         bool "Enable EFI GPT partition table"
93         default y if DISTRO_DEFAULTS
94         default y if ARCH_TEGRA
95         select PARTITIONS
96         select LIB_UUID
97         help
98           Say Y here if you would like to use device under U-Boot which
99           were partitioned using EFI GPT.
100           common when EFI is the bootloader.  Note 2TB partition limit;
101           see disk/part_efi.c
102
103 config EFI_PARTITION_ENTRIES_NUMBERS
104         int "Number of the EFI partition entries"
105         depends on EFI_PARTITION
106         default 56 if ARCH_SUNXI
107         default 128
108         help
109           Specify the number of partition entries in the GPT. This is
110           meant to allow less than the standard specifies for devices
111           that might need to place their first-stage bootloader in the
112           middle of a regular GPT.
113
114           If unsure, leave at 128 entries, which is the standard
115           number.
116
117 config EFI_PARTITION_ENTRIES_OFF
118         int "Offset (in bytes) of the EFI partition entries"
119         depends on EFI_PARTITION
120         default 0
121         help
122           Specify an earliest location (in bytes) where the partition
123           entries may be located. This is meant to allow "punching a
124           hole into a device" to create a gap for an SPL, its payload
125           and the U-Boot environment.
126
127           If unsure, leave at 0 (which will locate the partition
128           entries at the first possible LBA following the GPT header).
129
130 config SPL_EFI_PARTITION
131         bool "Enable EFI GPT partition table for SPL"
132         depends on  SPL
133         default n if ARCH_SUNXI
134         default y if EFI_PARTITION
135         select SPL_PARTITIONS
136
137 config PARTITION_UUIDS
138         bool "Enable support of UUID for partition"
139         depends on PARTITIONS
140         default y if DISTRO_DEFAULTS
141         default y if EFI_PARTITION
142         select LIB_UUID
143         help
144           Activate the configuration of UUID for partition
145
146 config SPL_PARTITION_UUIDS
147         bool "Enable support of UUID for partition in SPL"
148         depends on SPL_PARTITIONS
149         default y if SPL_EFI_PARTITION
150
151 config PARTITION_TYPE_GUID
152         bool "Enable support of GUID for partition type"
153         depends on EFI_PARTITION
154         help
155           Activate the configuration of GUID type
156           for EFI partition
157
158 endmenu