]> git.baikalelectronics.ru Git - uboot.git/commit
env: Complete generic support for writable list
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 3 Feb 2023 12:22:51 +0000 (13:22 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 16:24:08 +0000 (11:24 -0500)
commit7add8107bf97519112c41d6cdd9cbe758fc5203a
tree6a8d68acebd4fae2d3bf1276da5cba5d9309c32a
parent6e4fa383d5d5b61154bb3311c69e5865e6df6d69
env: Complete generic support for writable list

This completes what af7104f46007 started by selecting ENV_APPEND and
loading the default env before any other sources. This ensures that load
operations pick up all non-writable vars from the default env and only
permitted parts from other locations according to the regular
priorities.

With this change, boards only need to define the list of writable
variables but no longer have to provide a custom env_get_location
implementation.

CC: Joe Hershberger <joe.hershberger@ni.com>
CC: Marek Vasut <marex@denx.de>
CC: Stefan Herbrechtsmeier <stefan.herbrechtsmeier-oss@weidmueller.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Marek Vasut <marex@denx.de>
env/Kconfig
env/env.c