public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] cmd: part: add explicit dependency on PARTITIONS
@ 2022-04-22  1:44 AKASHI Takahiro
  2022-04-22 12:14 ` Tom Rini
  2022-04-25 22:49 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: AKASHI Takahiro @ 2022-04-22  1:44 UTC (permalink / raw)
  To: trini; +Cc: u-boot, AKASHI Takahiro

This is a follow-up patch for my "disk: don't compile in partition
support for spl/tpl if not really necessary".

"part" command is useful only if, at least, one of partition table types
is selected. So it should have a dependency on PARTITIONS which is now
automatically selected if one of partition table types is enabled.

With this change, *_defconfig which explicitly selects CMD_PART but
has no partition table types enabled should also be fixed.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
---
 cmd/Kconfig                                  | 1 +
 configs/cortina_presidio-asic-emmc_defconfig | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index d3abe3a06bff..b69c26912568 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1239,6 +1239,7 @@ config CMD_OSD
 
 config CMD_PART
 	bool "part"
+	depends on PARTITIONS
 	select HAVE_BLOCK_DEVICE
 	select PARTITION_UUIDS
 	help
diff --git a/configs/cortina_presidio-asic-emmc_defconfig b/configs/cortina_presidio-asic-emmc_defconfig
index c22dcef7ec05..c217a00a1cf0 100644
--- a/configs/cortina_presidio-asic-emmc_defconfig
+++ b/configs/cortina_presidio-asic-emmc_defconfig
@@ -18,7 +18,6 @@ CONFIG_LAST_STAGE_INIT=y
 CONFIG_SYS_PROMPT="G3#"
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
-CONFIG_CMD_PART=y
 CONFIG_CMD_WDT=y
 CONFIG_BOOTP_BOOTFILESIZE=y
 CONFIG_CMD_CACHE=y
-- 
2.33.0


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

* Re: [PATCH] cmd: part: add explicit dependency on PARTITIONS
  2022-04-22  1:44 [PATCH] cmd: part: add explicit dependency on PARTITIONS AKASHI Takahiro
@ 2022-04-22 12:14 ` Tom Rini
  2022-04-25 22:49 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-04-22 12:14 UTC (permalink / raw)
  To: AKASHI Takahiro; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

On Fri, Apr 22, 2022 at 10:44:30AM +0900, AKASHI Takahiro wrote:

> This is a follow-up patch for my "disk: don't compile in partition
> support for spl/tpl if not really necessary".
> 
> "part" command is useful only if, at least, one of partition table types
> is selected. So it should have a dependency on PARTITIONS which is now
> automatically selected if one of partition table types is enabled.
> 
> With this change, *_defconfig which explicitly selects CMD_PART but
> has no partition table types enabled should also be fixed.
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] cmd: part: add explicit dependency on PARTITIONS
  2022-04-22  1:44 [PATCH] cmd: part: add explicit dependency on PARTITIONS AKASHI Takahiro
  2022-04-22 12:14 ` Tom Rini
@ 2022-04-25 22:49 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-04-25 22:49 UTC (permalink / raw)
  To: AKASHI Takahiro; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

On Fri, Apr 22, 2022 at 10:44:30AM +0900, AKASHI Takahiro wrote:

> This is a follow-up patch for my "disk: don't compile in partition
> support for spl/tpl if not really necessary".
> 
> "part" command is useful only if, at least, one of partition table types
> is selected. So it should have a dependency on PARTITIONS which is now
> automatically selected if one of partition table types is enabled.
> 
> With this change, *_defconfig which explicitly selects CMD_PART but
> has no partition table types enabled should also be fixed.
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2022-04-25 22:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22  1:44 [PATCH] cmd: part: add explicit dependency on PARTITIONS AKASHI Takahiro
2022-04-22 12:14 ` Tom Rini
2022-04-25 22:49 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox