]> git.dujemihanovic.xyz Git - u-boot.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)
commit5ab81058364b5e49bdc6f530368d49e94dfcb960
tree6a8d68acebd4fae2d3bf1276da5cba5d9309c32a
parent01065043ad9deec894dcd76b1ac44eb9e502f6e0
env: Complete generic support for writable list

This completes what 890feecaab72 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