]> git.baikalelectronics.ru Git - uboot.git/commit
Allow providing default environment from file
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 20 Mar 2018 10:38:45 +0000 (11:38 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 7 Apr 2018 00:45:28 +0000 (20:45 -0400)
commit68c9a48077dc1fb719063226d3eb0b7438847686
treeac0438620f8ac9bacd7a390ec03f05f6ad50dd01
parent0a3a5fcdc6fdcb423810195bb41c80a41d07c55c
Allow providing default environment from file

Modifying the default environment via CONFIG_EXTRA_ENV_SETTINGS is
somewhat inflexible, partly because the cpp language does not allow
appending to an existing macro. This prevents reuse of "environment
fragments" for different boards, which in turn makes maintaining that
environment consistently tedious and error-prone.

This implements a Kconfig option for allowing one to define the entire
default environment in an external file, which can then, for example, be
generated programmatically as part of a Yocto recipe, or simply be kept
in version control separately from the U-boot repository.

Tested-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Makefile
env/Kconfig
include/env_default.h