diff mbox series

mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE

Message ID 20210308164933.13356-1-klaus@linux.vnet.ibm.com
State Superseded
Delegated to: Peng Fan
Headers show
Series mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE | expand

Commit Message

Klaus Heinrich Kiwi March 8, 2021, 4:49 p.m. UTC
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 <klaus@linux.vnet.ibm.com>
---

 common/spl/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

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