summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-25 17:28:39 +0100
committerTom Rini <trini@konsulko.com>2021-01-25 13:11:13 -0500
commit46d594e371dfe6d45d146e6a3b277665fe24d622 (patch)
tree55d6e6fe38132e65f0de2a12a4674232b47a933a
parent4057b98ff2f3fd112f05024cad5ccf970fa9bed4 (diff)
downloadu-boot-RFC/disk-PARTITIONS-depends-on-HAVE_BLOCK_DEVICE.tar.gz
disk: PARTITIONS should depend on HAVE_BLOCK_DEVICERFC/disk-PARTITIONS-depends-on-HAVE_BLOCK_DEVICE
Partitions are only relevant for block devices. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--cmd/Kconfig4
-rw-r--r--disk/Kconfig1
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0625ee4050..e253fb7a68 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1171,8 +1171,8 @@ config CMD_OSD
config CMD_PART
bool "part"
- select HAVE_BLOCK_DEVICE
- select PARTITION_UUIDS
+ depends on PARTITION_UUIDS
+ default y if DISTRO_DEFAULTS
help
Read and display information about the partition table on
various media.
diff --git a/disk/Kconfig b/disk/Kconfig
index cee16a80bc..1dfe3a0667 100644
--- a/disk/Kconfig
+++ b/disk/Kconfig
@@ -3,6 +3,7 @@ menu "Partition Types"
config PARTITIONS
bool "Enable Partition Labels (disklabels) support"
+ depends on HAVE_BLOCK_DEVICE
default y
select SPL_SPRINTF if SPL
select TPL_SPRINTF if TPL