]> git.ipfire.org Git - people/ms/u-boot.git/commit
spl: saveenv: adding saveenv support in SPL
authorB, Ravi <ravibabu@ti.com>
Wed, 28 Sep 2016 09:16:18 +0000 (14:46 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 8 Oct 2016 13:33:36 +0000 (09:33 -0400)
commitd2d9bdfcf9bdd6a39119c19c644189fccbe588cc
tree38578ed2cf0331eb7e8acfb017cc2e9aec62d4ab
parent6d1a718fdffc92e5d1622d6892384328f5f73d03
spl: saveenv: adding saveenv support in SPL

By default saveenv option is not supported for SPL. This patch
enable the support for save environment variable for SPL build.

Enable save environment support in SPL after setenv. By default
the saveenv option is not provided in SPL, but some boards need
this support in 'Falcon' boot, where SPL need to boot from
different images based on environment variable set by OS. For
example OS may set "reboot_image" environment variable to
"recovery" inorder to boot recovery image by SPL. The SPL read
"reboot_image" and act accordingly and change the reboot_image
to default mode using setenv and save the environemnt.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Simon Glass <sig@chromium.org>
change in v1:
- dropped SUPPORT, use CONFIG_SPL_SAVEENV
- updates the comments in mmc_private.h
common/spl/Kconfig
drivers/mmc/Makefile
drivers/mmc/mmc_private.h
lib/Makefile
lib/hashtable.c