disk: PARTITIONS should depend on HAVE_BLOCK_DEVICE

Partitions are only relevant for block devices.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0625ee4..e253fb7 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1171,8 +1171,8 @@
 
 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 cee16a8..1dfe3a0 100644
--- a/disk/Kconfig
+++ b/disk/Kconfig
@@ -3,6 +3,7 @@
 
 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