Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
[oweals/u-boot.git] / disk / Kconfig
index 93965621206574056260c1f56870619372648ba9..747275c2ba140c9c3c913baf2d59556d89ac3e27 100644 (file)
@@ -4,6 +4,10 @@ menu "Partition Types"
 config PARTITIONS
        bool "Enable Partition Labels (disklabels) support"
        default y
+       select SPL_SPRINTF if SPL
+       select TPL_SPRINTF if TPL
+       select SPL_STRTO if SPL
+       select TPL_STRTO if TPL
        help
          Partition Labels (disklabels) Supported:
          Zero or more of the following:
@@ -42,6 +46,7 @@ config DOS_PARTITION
 config SPL_DOS_PARTITION
        bool "Enable MS Dos partition table for SPL"
        depends on SPL && PARTITIONS
+       default n if ARCH_SUNXI
        default y if DOS_PARTITION
 
 config ISO_PARTITION
@@ -53,7 +58,6 @@ config ISO_PARTITION
 config SPL_ISO_PARTITION
        bool "Enable ISO partition table for SPL"
        depends on SPL && PARTITIONS
-       default y if ISO_PARTITION
 
 config AMIGA_PARTITION
        bool "Enable AMIGA partition table"
@@ -72,12 +76,27 @@ config EFI_PARTITION
        depends on PARTITIONS
        default y if DISTRO_DEFAULTS
        default y if TEGRA
+       select LIB_UUID
        help
          Say Y here if you would like to use device under U-Boot which
          were partitioned using EFI GPT.
          common when EFI is the bootloader.  Note 2TB partition limit;
          see disk/part_efi.c
 
+config EFI_PARTITION_ENTRIES_NUMBERS
+       int "Number of the EFI partition entries"
+       depends on EFI_PARTITION
+       default 56 if ARCH_SUNXI
+       default 128
+       help
+         Specify the number of partition entries in the GPT. This is
+         meant to allow less than the standard specifies for devices
+         that might need to place their first-stage bootloader in the
+         middle of a regular GPT.
+
+         If unsure, leave at 128 entries, which is the standard
+         number.
+
 config EFI_PARTITION_ENTRIES_OFF
         int "Offset (in bytes) of the EFI partition entries"
        depends on EFI_PARTITION
@@ -94,6 +113,7 @@ config EFI_PARTITION_ENTRIES_OFF
 config SPL_EFI_PARTITION
        bool "Enable EFI GPT partition table for SPL"
        depends on  SPL && PARTITIONS
+       default n if ARCH_SUNXI
        default y if EFI_PARTITION
 
 config PARTITION_UUIDS
@@ -101,6 +121,7 @@ config PARTITION_UUIDS
        depends on PARTITIONS
        default y if DISTRO_DEFAULTS
        default y if EFI_PARTITION
+       select LIB_UUID
        help
          Activate the configuration of UUID for partition