summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-18 19:44:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-05 11:51:35 +0100
commit8be08d9cf2e9097308be4e1d39a4fd7d357356b5 (patch)
treefe0aedd51011d4da690095afdd54daf5eb45b8eb /common/Kconfig
parent94e71b843f6456abacc2fe76a5c375a461fabdf7 (diff)
downloadbarebox-8be08d9cf2e9097308be4e1d39a4fd7d357356b5.tar.gz
barebox-8be08d9cf2e9097308be4e1d39a4fd7d357356b5.tar.xz
defaultenv-2: add boot sequence
This allows to boot a sequence of boot entries until one succeeds. boot sources can be passed in $global.boot.default, which is now treated as a list. Also a list of boot entries can be specified as arguments to the boot script. The entries can be: - a plain filename from /env/boot/ - a full path to an arbitrary file - a directory containing boot entries With this this command: boot net nand-ubi /env/boot.d would first use the /env/boot/net entry, if this fails the /env/boot/nand-ubi entry and if this also fails the files from /env/boot.d/ (which could also be links to boot scripts) To make the above the default, global.boot.default would be specified as: global.boot.default="net nand-ubi /env/boot.d" Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 3a55e017f4..683460b853 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -532,6 +532,8 @@ config DEFAULT_ENVIRONMENT_GENERIC_NEW
select CMD_GLOBAL
select CMD_AUTOMOUNT
select CMD_BASENAME
+ select CMD_READLINK
+ select CMD_DIRNAME
select FLEXIBLE_BOOTARGS
prompt "Generic environment template"