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 <lu...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to