On 3/27/21 7:43 PM, Heinrich Schuchardt wrote: > 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 <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]> Best Regards, Jaehoon Chung > --- > cmd/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/cmd/Kconfig b/cmd/Kconfig > index 0107c0fa3e..3ce223bed0 100644 > --- a/cmd/Kconfig > +++ b/cmd/Kconfig > @@ -1052,6 +1052,7 @@ config CMD_MISC > > config CMD_MMC > bool "mmc" > + depends on MMC > help > MMC memory mapped support. > > -- > 2.29.2 > >

