From: Jaehoon Chung Date: Mon, 29 Mar 2021 08:02:33 +0900 Subject: [PATCH 1/1] cmd: CONFIG_CMD_MMC depends on CONFIG_MMC In-Reply-To: <20210327104354.37837-1-xypron.glpk@gmx.de> References: <20210327104354.37837-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Jaehoon Chung 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 > >