[PATCH resend] mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE
Klaus Heinrich Kiwi
klaus at linux.vnet.ibm.com
Tue Apr 6 15:52:35 CEST 2021
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 at linux.vnet.ibm.com>
---
common/spl/Kconfig | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 0711cbf951..5b0eaa1414 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -710,6 +710,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
More information about the U-Boot
mailing list