From: Heinrich Schuchardt Date: Sat, 27 Mar 2021 10:43:54 +0000 (+0100) Subject: cmd: CONFIG_CMD_MMC depends on CONFIG_MMC X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ec611871f3eb366f7efd557167ec2284e5f5069b;p=u-boot.git cmd: CONFIG_CMD_MMC depends on CONFIG_MMC Trying to compile with CONFIG_CMD_MMC=y and CONFIG_MMC=n leads to errors: riscv64-linux-gnu-ld.bfd: cmd/built-in.o: in function `do_mmcops': cmd/mmc.c:984: undefined reference to `get_mmc_num' riscv64-linux-gnu-ld.bfd: cmd/built-in.o: in function `do_mmc_setdsr': cmd/mmc.c:873: undefined reference to `find_mmc_device' Add missing dependency. Signed-off-by: Heinrich Schuchardt Reviewed-by: Bin Meng Reviewed-by: Jaehoon Chung --- diff --git a/cmd/Kconfig b/cmd/Kconfig index f4cff0c125..2b66285e0d 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1067,6 +1067,7 @@ config CMD_MISC config CMD_MMC bool "mmc" + depends on MMC help MMC memory mapped support.