]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: CONFIG_CMD_MMC depends on CONFIG_MMC
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Mar 2021 10:43:54 +0000 (11:43 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 20 Apr 2021 11:31:12 +0000 (07:31 -0400)
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 <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
cmd/Kconfig

index f4cff0c1258d8295c4f7c38aa9b8c3b8e0bbe8e7..2b66285e0d4f8d6f5b8d526d06d98b2a131e03bd 100644 (file)
@@ -1067,6 +1067,7 @@ config CMD_MISC
 
 config CMD_MMC
        bool "mmc"
+       depends on MMC
        help
          MMC memory mapped support.