u-boot-brain/env
Rasmus Villemoes f3d8f7dd73 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>
2018-04-06 20:45:28 -04:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
eeprom.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
embedded.c common: env_embedded: allow fine placement of environment object 2018-04-06 16:30:37 -04:00
env.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
ext4.c env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it 2018-02-20 08:21:30 -05:00
fat.c env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it 2018-02-20 08:21:30 -05:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
Kconfig Allow providing default environment from file 2018-04-06 20:45:28 -04:00
Makefile env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
mmc.c env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it 2018-02-20 08:21:30 -05:00
nand.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: restore old env_get_char() behaviour 2018-02-16 11:12:42 -05:00
onenand.c env: make env_import(_redund) return 0 on success, not 1 2018-01-31 18:45:10 -05:00
remote.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
sata.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00
sf.c env: sf: use env_import_redund to simplify env_sf_load 2018-02-01 08:05:53 -05:00
ubi.c env: make env drivers propagate env_import return value 2018-02-01 08:05:53 -05:00