diff mbox series

[U-Boot,v2,1/4] Kconfig: Make CMD_SPL_NAND_OFS onlyavailable when proper memory is used

Message ID 20190516140138.8215-1-lukma@denx.de
State Accepted
Commit 7cb179eef96990853f52fed80203c682f6fa4692
Delegated to: Stefano Babic
Headers show
Series [U-Boot,v2,1/4] Kconfig: Make CMD_SPL_NAND_OFS onlyavailable when proper memory is used | expand

Commit Message

Lukasz Majewski May 16, 2019, 2:01 p.m. UTC
This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND
memory.
Before this change it was present when only CMD_SPL was enabled (and
would stay when board with other falcon boot medium is used).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---

Changes in v2: None

 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Stefano Babic July 20, 2019, 8:51 a.m. UTC | #1
> This commit makes the CMD_SPL_NAND_OFS only visible when we use NAND
> memory.
> Before this change it was present when only CMD_SPL was enabled (and
> would stay when board with other falcon boot medium is used).
> Signed-off-by: Lukasz Majewski <lukma@denx.de>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0d36da2a5c..7bc275f135 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -327,6 +327,7 @@  config CMD_SPL
 config CMD_SPL_NAND_OFS
 	hex "Offset of OS command line args for Falcon-mode NAND boot"
 	depends on CMD_SPL
+	depends on CMD_SPL && (TPL_NAND_SUPPORT || SPL_NAND_SUPPORT)
 	default 0
 	help
 	  This provides the offset of the command line arguments for Linux