From: AKASHI Takahiro Date: Fri, 22 Apr 2022 01:44:30 +0000 (+0900) Subject: cmd: part: add explicit dependency on PARTITIONS X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=64efbd125dd8e1dff7a0f3cc2b3df810794a2aea;p=u-boot.git cmd: part: add explicit dependency on PARTITIONS 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 Reviewed-by: Tom Rini --- diff --git a/cmd/Kconfig b/cmd/Kconfig index f580797d2d..65517cb69e 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1246,6 +1246,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 b0bd54f7cb..b8a1c96c83 100644 --- a/configs/cortina_presidio-asic-emmc_defconfig +++ b/configs/cortina_presidio-asic-emmc_defconfig @@ -20,7 +20,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