From: Klaus Heinrich Kiwi Date: Mon, 8 Mar 2021 13:49:33 -0300 Subject: [PATCH] mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE Message-ID: <20210308164933.13356-1-klaus@linux.vnet.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When building the SPL with MMC config and CONFIG_LOGLEVEL > 7, the function mmc_select_mode() at drivers/mmc/mmc.c will call mmc_mode_name() which is only defined if CONFIG_IS_ENABLED(MMC_VERBOSE) which doesn't have a corresponding CONFIG_SPL_MMC_VERBOSE defined in Kconfig. Fixes this build error: arm-linux-gnueabi-ld.bfd: drivers/built-in.o: in function `mmc_select_mode': /drivers/mmc/mmc.c:192: undefined reference to `mmc_mode_name' make[1]: *** [scripts/Makefile.spl:432: spl/u-boot-spl] Error 1 make: *** [Makefile:1942: spl/u-boot-spl] Error 2 Signed-off-by: Klaus Heinrich Kiwi --- common/spl/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 774541c02b..2b36c86e0f 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -697,6 +697,13 @@ config SPL_MMC_SUPPORT this option to build the drivers in drivers/mmc as part of an SPL build. +config SPL_MMC_VERBOSE + bool "Output mode information about the MMC" + depends on SPL_MMC_SUPPORT + help + Enable the output of more information about the card such as the + operating mode. + config SYS_MMCSD_FS_BOOT_PARTITION int "MMC Boot Partition" default 1 -- 2.25.1