]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: part: add explicit dependency on PARTITIONS
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 22 Apr 2022 01:44:30 +0000 (10:44 +0900)
committerTom Rini <trini@konsulko.com>
Sun, 24 Apr 2022 19:17:31 +0000 (15:17 -0400)
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>
cmd/Kconfig
configs/cortina_presidio-asic-emmc_defconfig

index f580797d2d3e93c2d2ecf70648f38ada80cfa15a..65517cb69eebe27229c78502fe5effb54a56e23e 100644 (file)
@@ -1246,6 +1246,7 @@ config CMD_OSD
 
 config CMD_PART
        bool "part"
+       depends on PARTITIONS
        select HAVE_BLOCK_DEVICE
        select PARTITION_UUIDS
        help
index b0bd54f7cb136e8dc208a587314523e07e4133fe..b8a1c96c8347cb5d0030400c931a6c6178128f7f 100644 (file)
@@ -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