public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig
@ 2017-09-10 18:25 Lukasz Majewski
  2017-09-11 17:31 ` Tom Rini
  0 siblings, 1 reply; 10+ messages in thread
From: Lukasz Majewski @ 2017-09-10 18:25 UTC (permalink / raw)
  To: u-boot

This patch gives an opportunity to override the defined CONFIG_BOOTCOMMAND
(at <board_config.h> files) with set of commands defined in
board _defconfig file.

Rationale: This change allows having two different u-boot builds - one for
production and one (far more larger) for factory setup.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
 cmd/Kconfig | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index d6d130e..e5c12a9 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -30,6 +30,21 @@ config SYS_PROMPT
 	  This string is displayed in the command line to the left of the
 	  cursor.
 
+config BOOTCMD_OVERRIDE
+	bool "Override default CONFIG_BOOTCOMMAND define"
+	help
+	  This option allows overriding the CONFIG_BOOTCOMMAND define
+	  from the Kconfig as many boards define their default set of
+	  commands with CONFIG_BOOTCOMMAND.
+
+config BOOTCOMMAND
+	string "Default boot commands"
+	depends on BOOTCMD_OVERRIDE
+	default ""
+	help
+	  This string contains the set of u-boot commands to be executed
+	  by default.
+
 menu "Autoboot options"
 
 config AUTOBOOT
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-06 17:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-10 18:25 [U-Boot] [PATCH] Kconfig: BOOTCOMMAND: Define default set of boot commands in Kconfig Lukasz Majewski
2017-09-11 17:31 ` Tom Rini
2017-09-11 20:53   ` Łukasz Majewski
2017-09-14 14:55     ` Tom Rini
2017-09-30 20:20       ` Łukasz Majewski
2017-10-01  0:41         ` Tom Rini
2017-10-02  8:19           ` Łukasz Majewski
2017-10-27 12:04           ` Lukasz Majewski
2017-11-06 14:32             ` Tom Rini
2017-11-06 17:38               ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox