xref: /OK3568_Linux_fs/u-boot/disk/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun
2*4882a593Smuzhiyunmenu "Partition Types"
3*4882a593Smuzhiyun
4*4882a593Smuzhiyunconfig PARTITIONS
5*4882a593Smuzhiyun	bool "Enable Partition Labels (disklabels) support"
6*4882a593Smuzhiyun	default y
7*4882a593Smuzhiyun	select SPL_SPRINTF if SPL
8*4882a593Smuzhiyun	select TPL_SPRINTF if TPL
9*4882a593Smuzhiyun	select SPL_STRTO if SPL
10*4882a593Smuzhiyun	select TPL_STRTO if TPL
11*4882a593Smuzhiyun	help
12*4882a593Smuzhiyun	  Partition Labels (disklabels) Supported:
13*4882a593Smuzhiyun	  Zero or more of the following:
14*4882a593Smuzhiyun	  - CONFIG_MAC_PARTITION   Apple's MacOS partition table.
15*4882a593Smuzhiyun	  - CONFIG_DOS_PARTITION   MS Dos partition table, traditional on the
16*4882a593Smuzhiyun	                           Intel architecture, USB sticks, etc.
17*4882a593Smuzhiyun	  - CONFIG_ISO_PARTITION   ISO partition table, used on CDROM etc.
18*4882a593Smuzhiyun	  - CONFIG_EFI_PARTITION   GPT partition table, common when EFI is the
19*4882a593Smuzhiyun	                           bootloader.  Note 2TB partition limit; see
20*4882a593Smuzhiyun	                           disk/part_efi.c
21*4882a593Smuzhiyun	  - CONFIG_MTD_PARTITIONS  Memory Technology Device partition table.
22*4882a593Smuzhiyun	  If IDE or SCSI support is enabled (CONFIG_CMD_IDE or CONFIG_SCSI)
23*4882a593Smuzhiyun	  you must configure support for at least one non-MTD partition type
24*4882a593Smuzhiyun	  as well.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunconfig MAC_PARTITION
27*4882a593Smuzhiyun	bool "Enable Apple's MacOS partition table"
28*4882a593Smuzhiyun	depends on PARTITIONS
29*4882a593Smuzhiyun	help
30*4882a593Smuzhiyun	  Say Y here if you would like to use device under U-Boot which
31*4882a593Smuzhiyun	  were partitioned on a Macintosh.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunconfig SPL_MAC_PARTITION
34*4882a593Smuzhiyun	bool "Enable Apple's MacOS partition table for SPL"
35*4882a593Smuzhiyun	depends on SPL && PARTITIONS
36*4882a593Smuzhiyun	default y if MAC_PARTITION
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunconfig DOS_PARTITION
39*4882a593Smuzhiyun	bool "Enable MS Dos partition table"
40*4882a593Smuzhiyun	depends on PARTITIONS
41*4882a593Smuzhiyun	default y if DISTRO_DEFAULTS
42*4882a593Smuzhiyun	default y if x86 || CMD_FAT || USB_STORAGE
43*4882a593Smuzhiyun	help
44*4882a593Smuzhiyun	  traditional on the Intel architecture, USB sticks, etc.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyunconfig SPL_DOS_PARTITION
47*4882a593Smuzhiyun	bool "Enable MS Dos partition table for SPL"
48*4882a593Smuzhiyun	depends on SPL && PARTITIONS
49*4882a593Smuzhiyun	default y if DOS_PARTITION
50*4882a593Smuzhiyun
51*4882a593Smuzhiyunconfig ISO_PARTITION
52*4882a593Smuzhiyun	bool "Enable ISO partition table"
53*4882a593Smuzhiyun	depends on PARTITIONS
54*4882a593Smuzhiyun	default y if DISTRO_DEFAULTS
55*4882a593Smuzhiyun	default y if MIPS || TEGRA
56*4882a593Smuzhiyun
57*4882a593Smuzhiyunconfig SPL_ISO_PARTITION
58*4882a593Smuzhiyun	bool "Enable ISO partition table for SPL"
59*4882a593Smuzhiyun	depends on SPL && PARTITIONS
60*4882a593Smuzhiyun	default y if ISO_PARTITION
61*4882a593Smuzhiyun
62*4882a593Smuzhiyunconfig AMIGA_PARTITION
63*4882a593Smuzhiyun	bool "Enable AMIGA partition table"
64*4882a593Smuzhiyun	depends on PARTITIONS
65*4882a593Smuzhiyun	help
66*4882a593Smuzhiyun	  Say Y here if you would like to use device under U-Boot which
67*4882a593Smuzhiyun	  were partitioned under AmigaOS.
68*4882a593Smuzhiyun
69*4882a593Smuzhiyunconfig SPL_AMIGA_PARTITION
70*4882a593Smuzhiyun	bool "Enable AMIGA partition table for SPL"
71*4882a593Smuzhiyun	depends on SPL && PARTITIONS
72*4882a593Smuzhiyun	default y if AMIGA_PARTITION
73*4882a593Smuzhiyun
74*4882a593Smuzhiyunconfig EFI_PARTITION
75*4882a593Smuzhiyun	bool "Enable EFI GPT partition table"
76*4882a593Smuzhiyun	depends on PARTITIONS
77*4882a593Smuzhiyun	default y if DISTRO_DEFAULTS
78*4882a593Smuzhiyun	default y if TEGRA
79*4882a593Smuzhiyun	help
80*4882a593Smuzhiyun	  Say Y here if you would like to use device under U-Boot which
81*4882a593Smuzhiyun	  were partitioned using EFI GPT.
82*4882a593Smuzhiyun	  common when EFI is the bootloader.  Note 2TB partition limit;
83*4882a593Smuzhiyun	  see disk/part_efi.c
84*4882a593Smuzhiyun
85*4882a593Smuzhiyunconfig EFI_PARTITION_ENTRIES_NUMBERS
86*4882a593Smuzhiyun	int "Number of the EFI partition entries"
87*4882a593Smuzhiyun	depends on EFI_PARTITION
88*4882a593Smuzhiyun	default 56 if ARCH_SUNXI
89*4882a593Smuzhiyun	default 128
90*4882a593Smuzhiyun	help
91*4882a593Smuzhiyun	  Specify the number of partition entries in the GPT. This is
92*4882a593Smuzhiyun	  meant to allow less than the standard specifies for devices
93*4882a593Smuzhiyun	  that might need to place their first-stage bootloader in the
94*4882a593Smuzhiyun	  middle of a regular GPT.
95*4882a593Smuzhiyun
96*4882a593Smuzhiyun	  If unsure, leave at 128 entries, which is the standard
97*4882a593Smuzhiyun	  number.
98*4882a593Smuzhiyun
99*4882a593Smuzhiyunconfig EFI_PARTITION_ENTRIES_OFF
100*4882a593Smuzhiyun        int "Offset (in bytes) of the EFI partition entries"
101*4882a593Smuzhiyun	depends on EFI_PARTITION
102*4882a593Smuzhiyun	default 0
103*4882a593Smuzhiyun	help
104*4882a593Smuzhiyun	  Specify an earliest location (in bytes) where the partition
105*4882a593Smuzhiyun	  entries may be located. This is meant to allow "punching a
106*4882a593Smuzhiyun	  hole into a device" to create a gap for an SPL, its payload
107*4882a593Smuzhiyun	  and the U-Boot environment.
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun	  If unsure, leave at 0 (which will locate the partition
110*4882a593Smuzhiyun	  entries at the first possible LBA following the GPT header).
111*4882a593Smuzhiyun
112*4882a593Smuzhiyunconfig SPL_EFI_PARTITION
113*4882a593Smuzhiyun	bool "Enable EFI GPT partition table for SPL"
114*4882a593Smuzhiyun	depends on  SPL && PARTITIONS
115*4882a593Smuzhiyun	default y if EFI_PARTITION
116*4882a593Smuzhiyun
117*4882a593Smuzhiyunconfig PARTITION_UUIDS
118*4882a593Smuzhiyun	bool "Enable support of UUID for partition"
119*4882a593Smuzhiyun	depends on PARTITIONS
120*4882a593Smuzhiyun	default y if DISTRO_DEFAULTS
121*4882a593Smuzhiyun	default y if EFI_PARTITION
122*4882a593Smuzhiyun	help
123*4882a593Smuzhiyun	  Activate the configuration of UUID for partition
124*4882a593Smuzhiyun
125*4882a593Smuzhiyunconfig SPL_PARTITION_UUIDS
126*4882a593Smuzhiyun	bool "Enable support of UUID for partition in SPL"
127*4882a593Smuzhiyun	depends on SPL && PARTITIONS
128*4882a593Smuzhiyun	default y if SPL_EFI_PARTITION
129*4882a593Smuzhiyun
130*4882a593Smuzhiyunconfig PARTITION_TYPE_GUID
131*4882a593Smuzhiyun	bool "Enable support of GUID for partition type"
132*4882a593Smuzhiyun	depends on PARTITIONS
133*4882a593Smuzhiyun	depends on EFI_PARTITION
134*4882a593Smuzhiyun	help
135*4882a593Smuzhiyun	  Activate the configuration of GUID type
136*4882a593Smuzhiyun	  for EFI partition
137*4882a593Smuzhiyun
138*4882a593Smuzhiyunconfig ENV_PARTITION
139*4882a593Smuzhiyun	bool "Enable ENV partition table support"
140*4882a593Smuzhiyun	depends on PARTITIONS
141*4882a593Smuzhiyun	default y if ENVF
142*4882a593Smuzhiyun	help
143*4882a593Smuzhiyun	  Say Y here if you would like to use ENV partition table.
144*4882a593Smuzhiyun
145*4882a593Smuzhiyunconfig SPL_ENV_PARTITION
146*4882a593Smuzhiyun	bool "Enable ENV partition table support in SPL"
147*4882a593Smuzhiyun	depends on SPL && PARTITIONS
148*4882a593Smuzhiyun	default y if SPL_ENVF
149*4882a593Smuzhiyun	help
150*4882a593Smuzhiyun	  Say Y here if you would like to use ENV partition table in SPL.
151*4882a593Smuzhiyun
152*4882a593Smuzhiyunconfig RKPARM_PARTITION
153*4882a593Smuzhiyun	bool "Enable Rockchip parameter partition table"
154*4882a593Smuzhiyun	depends on PARTITIONS
155*4882a593Smuzhiyun	help
156*4882a593Smuzhiyun	  Say Y here if you would like to use device under U-Boot which
157*4882a593Smuzhiyun	  were partitioned using Rockchip parameter.
158*4882a593Smuzhiyun
159*4882a593Smuzhiyunconfig RKRAM_PARTITION
160*4882a593Smuzhiyun	bool "Enable Rockchip ram partition table"
161*4882a593Smuzhiyun	depends on PARTITIONS && DM_RAMDISK
162*4882a593Smuzhiyun	depends on ROCKCHIP_PRELOADER_ATAGS
163*4882a593Smuzhiyun	help
164*4882a593Smuzhiyun	  Say Y here if you would like to use device under U-Boot which
165*4882a593Smuzhiyun	  were partitioned using Rockchip atags.
166*4882a593Smuzhiyun
167*4882a593Smuzhiyunconfig SPL_ROCKCHIP_PARTITION
168*4882a593Smuzhiyun	bool "Enable Rockchip partition table for SPL"
169*4882a593Smuzhiyun
170*4882a593Smuzhiyunendmenu
171