Skip to contentSkip to conversation

cmd: CONFIG_CMD_MMC depends on CONFIG_MMC

PATCH New Heinrich Schuchardt 4 participants 4 messages Mar 27, 2021 – Apr 20, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: CONFIG_CMD_MMC depends on CONFIG_MMC

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.

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 0107c0fa3e..3ce223bed0 100644
@@ -1052,6 +1052,7 @@ config CMD_MISC
 
 config CMD_MMC
 	bool "mmc"
+	depends on MMC
 	help
 	  MMC memory mapped support.
 

--
2.29.2

#1 lore raw

PATCH 1/1 cmd: CONFIG_CMD_MMC depends on CONFIG_MMC

Quoted 8 lines · Heinrich Schuchardt

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'

Quoted 7 lines

Add missing dependency.

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
#2 lore raw

PATCH 1/1 cmd: CONFIG_CMD_MMC depends on CONFIG_MMC

In reply to Heinrich Schuchardt
Quoted 10 lines · Heinrich Schuchardt

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.

Best Regards,
Jaehoon Chung

Quoted 20 lines
---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -1
index 0107c0fa3e..3ce223bed0 100644
@@ -1052,6 +1052,7 @@ config CMD_MISC
 
 config CMD_MMC
 	bool "mmc"
+	depends on MMC
 	help
 	  MMC memory mapped support.
 
--

2.29.2

#3 lore raw

PATCH 1/1 cmd: CONFIG_CMD_MMC depends on CONFIG_MMC

In reply to Heinrich Schuchardt
Quoted 7 lines · Heinrich Schuchardt

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'

Quoted 5 lines

Add missing dependency.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210420/cbfa1feb/attachment.sig>