env: Add option to only ever append environment
authorMarek Vasut <marex@denx.de>
Tue, 7 Jul 2020 18:51:38 +0000 (20:51 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 31 Jul 2020 14:13:00 +0000 (10:13 -0400)
commit47f3b1f243acfe755340753c5d467ba781618fa6
tree472b24b571e8a94bcafddb581f8b5f6e8bad1269
parent890feecaab72a630eac3344443e053173f4ad02f
env: Add option to only ever append environment

Add configuration option which prevents the environment hash table to be
ever cleared and reloaded with different content. This is useful in case
the first environment loaded into the hash table contains e.g. sensitive
content which must not be dropped or reloaded.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
env/Kconfig
env/env.c
lib/hashtable.c