]> git.sur5r.net Git - u-boot/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)
commitf3d8f7dd73ac5dde258eb786d4a01869395b56d7
treeac0438620f8ac9bacd7a390ec03f05f6ad50dd01
parent11dfd1a331e915b17f3dd25c4ca98382d400719e
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