mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE
PATCH RESEND 1/1 mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE
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--- common/spl/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)
common/spl/Kconfig +7 -0
@@ -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
Signature · 1 line
2.25.1
PATCH RESEND 1/1 mmc: kconfig: Add CONFIG_SPL_MMC_VERBOSE
Quoted 5 lines · Klaus Heinrich Kiwi
When building the SPL with MMC config and
CONFIG_LOGLEVEL> 7, the functionmmc_select_mode()atdrivers/mmc/mmc.cwill callmmc_mode_name()which is only defined ifCONFIG_IS_ENABLED(MMC_VERBOSE)which doesn't have a correspondingCONFIG_SPL_MMC_VERBOSEdefined inKconfig.
Sorry, i didn't see your build error.
Best Regards,
Jaehoon Chung
Quoted 35 lines
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 2Signed-off-by Klaus Heinrich Kiwi <[email protected]>--- common/spl/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+)common/spl/Kconfig +7
-0@@ -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