All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 1/1] disk: PARTITIONS should depend on HAVE_BLOCK_DEVICE
@ 2021-01-25 16:28 Heinrich Schuchardt
  2021-01-25 21:02 ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Heinrich Schuchardt @ 2021-01-25 16:28 UTC (permalink / raw)
  To: u-boot

Partitions are only relevant for block devices.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
I still need to check if the part command is needed on boards
w/o DISTRO_DEFAULTS.
---
 cmd/Kconfig  | 4 ++--
 disk/Kconfig | 1 +
 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
--
2.29.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-25 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 16:28 [RFC 1/1] disk: PARTITIONS should depend on HAVE_BLOCK_DEVICE Heinrich Schuchardt
2021-01-25 21:02 ` Tom Rini
2021-01-25 22:18   ` Heinrich Schuchardt
2021-01-25 22:22     ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.